Saltar para o conteúdo principal
PATCH
Update Asset

Autorizações

Authorization
string
header
obrigatório

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.

Parâmetros de caminho

asset-id
string
obrigatório

Asset ID.

Corpo

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.

Resposta

Successful Response

id
string
obrigatório

The id of the asset.

name
string
obrigatório

The name of the asset.

status
enum<string>
obrigatório

Approval status of the asset

Opções disponíveis:
pending_upload,
pending_approval,
upload_error,
approved,
rejected
productIds
string[]
obrigatório

The product ids that the asset is associated with.

brands
string[]
obrigatório

The brands that the asset is associated with.

metadata
Metadata · object
obrigatório

The metadata associated with the asset.

isExternal
boolean
obrigatório

Indicates if the asset is externally hosted.

collections
string[]
obrigatório

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