Skip to content

Set asset name

PATCH /asset/<assetId>/name

Description

Set the asset name. Success (204) is also returned when the asset name has not been changed.

Path parameters

Param Description
assetId Asset Id.

Query parameters

none

Body

Param Type Required Description
name string Yes Asset name.

Return codes

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

Example

Curl request:

curl \
    -X PATCH 'https://api.infrasonar.com/asset/123/name' \
    -H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
    -H 'Content-Type: application/json' \
    --data-raw '{
    "name": "This is cool asset!"
}'