Update attribute values
PUThttps://demo.openremote.io/api/master/asset/attributes
Update attribute values
Request
Header Parameters
Authorization string
X-Forwarded-Proto string
X-Forwarded-Host string
- application/json
Body array
- Array [
- ]
ref object
valueobject
Responses
- default
default response
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
ref object
failurestring
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"
}
]
Authorization: oauth2
name: openidtype: oauth2flows: {
"clientCredentials": {
"tokenUrl": "/auth/realms/master/protocol/openid-connect/token",
"refreshUrl": "/auth/realms/master/protocol/openid-connect/token",
"scopes": {
"profile": "profile"
}
},
"authorizationCode": {
"authorizationUrl": "/auth/realms/master/protocol/openid-connect/auth",
"tokenUrl": "/auth/realms/master/protocol/openid-connect/token",
"refreshUrl": "/auth/realms/master/protocol/openid-connect/token",
"scopes": {
"profile": "profile"
}
}
}
- curl
- nodejs
- java
- python
- ruby
- csharp
- go
- php
- powershell
- CURL
curl -L -X PUT 'https://demo.openremote.io/api/master/asset/attributes' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '[
{
"ref": {
"id": "7Bt8M3cXEP6BHPh8r47DYf",
"name": "location"
},
"value": {}
}
]'
ResponseClear