Write to a single attribute with a timestamp
PUThttps://demo.openremote.io/api/master/asset/:assetId/attribute/:attributeName/:timestamp
Write to a single attribute with a timestamp
Request
Path Parameters
assetId stringrequired
attributeName stringrequired
timestamp int64required
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
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/:assetId/attribute/:attributeName/:timestamp' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{}'
ResponseClear