Passer au contenu principal
PATCH
Update Asset

Autorisations

Authorization
string
header
requis

A valid API key generated in Topsort's UI. Use the TSE API key if calling auctions or events API, otherwise use the TSC API key.

Paramètres de chemin

asset-id
string
requis

Asset ID.

Corps

application/json
name
string | null

The name of the asset.

Maximum string length: 64
Pattern: ^[^<>/\\]+$
productIds
string[] | null

The product ids that the asset is associated with.

Maximum array length: 10
Maximum string length: 64
brands
string[] | null

The brands that the asset is associated with.

Maximum array length: 10
Maximum string length: 64
collectionIds
string[] | null

The collections that the asset is associated with.

Maximum array length: 10
Maximum string length: 38
metadata
Metadata · object | null

The metadata associated with the asset.

Réponse

Successful Response

id
string
requis

The id of the asset.

name
string
requis

The name of the asset.

status
enum<string>
requis

Approval status of the asset

Options disponibles:
pending_upload,
pending_approval,
upload_error,
approved,
rejected
productIds
string[]
requis

The product ids that the asset is associated with.

brands
string[]
requis

The brands that the asset is associated with.

metadata
Metadata · object
requis

The metadata associated with the asset.

isExternal
boolean
requis

Indicates if the asset is externally hosted.

collections
string[]
requis

The collections that the asset is associated with.

mimetype
string | null

The mimetype of the asset.

url
string<uri> | null

The url of the asset.

Required string length: 1 - 2083