Set label name
PATCH
/label/<labelId>/name
Description
Set the label name. Success (204) is also returned when the label name has not been changed.
Path parameters
Param | Description |
---|---|
labelId |
Label Id. |
Query parameters
none
Body
Param | Type | Required | Description |
---|---|---|---|
name |
string | Yes | Label name. |
Return codes
Error code | Reason |
---|---|
204 |
Success. |
400 |
Invalid body. |
401 |
Invalid or missing token. |
403 |
Insufficient permissions (required: API +CONTAINER_ADMIN ). |
404 |
Label not found. |
Example
Curl request:
curl \
-X PATCH 'https://api.infrasonar.com/label/123/name' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "My Label"
}'