Skip to main content
PUT
Replace an asset's labels

Authorizations

X-API-KEY
string
header
required
OW-KEY
string
header
required

OpenWrench shared secret. Required on every request alongside X-API-KEY; issued together with your API key.

Path Parameters

assetId
integer
required

Asset id.

Body

application/json

Full replacement set of label ids. Send an empty array to clear all labels.

ids
integer[]
required

Ids of labels from the corresponding label catalog. Duplicates are de-duplicated.

Response

Success. Returns the labels now active on the asset.

type
string
required

Entity type marker, "AssetLabel".

data
object[]
required
count
integer
required
status
enum<string>
required
Available options:
ok