Updates the list of human-readable descriptive text strings associated with a specific attribute.
This is a privileged operation.
(Note: Concurrent requests to update a label or group of labels may result in data
being overwritten.)
Path Elements
+nodeAttribute
string
|
The URI path to a specific node attribute (whether
by ID or
by name).
|
Example
- rename attribute referenced by ID
Request:
[
{
"locale" :"en-GB",
"value" :"Rather Large Townships"
}
]
Response:
HTTP/1.1
204
NO CONTENT
Example
- update labels for a node referenced by name
Request:
[
{
"locale" :"en-US",
"value" :"Latitude"
},
{
"locale" :"es",
"value" :"latitud"
},
{
"locale" :"es-ES",
"value" :"Latitud"
}
]
Response:
HTTP/1.1
204
NO CONTENT
Error
Example
- blank or missing new labels
Request:
Response:
HTTP/1.1
400
BAD REQUEST
{
"errorID" : "DIM-001224",
"errorMessage": "Sorry, could not save the labels because there were errors.",
"requestID" : "DIM-0800200c9a66",
"details" :
[
{
"errorID" : "DIM-001501",
"errorMessage": "Sorry, label values must not be missing or blank.",
"locale" : "en"
},
{
"errorID" : "DIM-001501",
"errorMessage": "Sorry, label values must not be missing or blank.",
"locale" : "en-US"
},
]
}
Error
Example
- missing request payload
Request:
Response:
HTTP/1.1
400
BAD REQUEST