Write to a single attribute
PUT/asset/:assetId/attribute/:attributeName
Write to a single attribute
Request
Path Parameters
assetId stringrequired
attributeName stringrequired
Header Parameters
Authorization string
X-Forwarded-Proto string
X-Forwarded-Host string
- application/json
Body
object
Responses
- default
The result of the write operation
- application/json
- Schema
- Example (from schema)
Schema
ref
object
idstring
The asset identifier
Possible values: Value must match regular expression ^[0-9A-Za-z]{22}$
Example:
7Bt8M3cXEP6BHPh8r47DYfnamestringrequired
The attribute name
Possible values: Value must match regular expression ^\w+$
Example:
locationfailurestring
Possible values: [ASSET_NOT_FOUND, ATTRIBUTE_NOT_FOUND, INSUFFICIENT_ACCESS, INVALID_VALUE, INTERCEPTOR_FAILURE, STATE_STORAGE_FAILED, CANNOT_PROCESS, QUEUE_FULL, UNKNOWN, ASSET_ID_MISSING, ATTRIBUTE_NAME_MISSING]
{
"ref": {
"id": "7Bt8M3cXEP6BHPh8r47DYf",
"name": "location"
},
"failure": "ASSET_NOT_FOUND"
}