Zum Hauptinhalt springen
PATCH
Update Asset

Autorisierungen

Authorization
string
header
erforderlich

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.

Pfadparameter

asset-id
string
erforderlich

Asset ID.

Body

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.

Antwort

Successful Response

id
string
erforderlich

The id of the asset.

name
string
erforderlich

The name of the asset.

status
enum<string>
erforderlich

Approval status of the asset

Verfügbare Optionen:
pending_upload,
pending_approval,
upload_error,
approved,
rejected
productIds
string[]
erforderlich

The product ids that the asset is associated with.

brands
string[]
erforderlich

The brands that the asset is associated with.

metadata
Metadata · object
erforderlich

The metadata associated with the asset.

isExternal
boolean
erforderlich

Indicates if the asset is externally hosted.

collections
string[]
erforderlich

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