Assets API
Update Asset
Updates an asset.
PATCH
/
public
/
v1
/
assets
/
asset
/
{asset-id}
Path Parameters
asset-id
string
requiredAsset ID.
Body
application/json
brands
string[]
The brands that the asset is associated with.
collectionIds
string[]
The collections that the asset is associated with.
metadata
object
The metadata associated with the asset.
name
string
The name of the asset.
Maximum length:
64
productIds
string[]
The product ids that the asset is associated with.
Response
200 - application/json
brands
string[]
requiredThe brands that the asset is associated with.
collections
string[]
requiredThe collections that the asset is associated with.
id
string
requiredThe id of the asset.
isExternal
boolean
requiredIndicates if the asset is externally hosted.
metadata
object
requiredThe metadata associated with the asset.
name
string
requiredThe name of the asset.
productIds
string[]
requiredThe product ids that the asset is associated with.
status
enum<string>
requiredApproval status of the asset
Available options:
pending_upload
, pending_approval
, upload_error
, approved
, rejected
mimetype
string
The mimetype of the asset.
url
string
The url of the asset.
Minimum length:
1