Skip to content

Add label to asset

PUT /asset/<assetId>/label/<labelId>

Description

Add a label to an asset. Success (204) is also returned when the label was already assigned to the asset.

Note: method POST is obsolete but still supported.

Path parameters

Param Description
assetId Asset Id.
labelId Label Id.

Query parameters

none

Body

none

Return codes

Error code Reason
204 Success.
401 Invalid or missing token.
403 Insufficient permissions (required: API+ASSET_MANAGEMENT).
404 Asset or label not found.

Example

Curl request:

curl \
    -X PUT 'https://api.infrasonar.com/asset/123/label/456' \
    -H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'