Write the predicted datapoints of an asset attribute
PUThttps://demo.openremote.io/api/master/asset/predicted/:assetId/:attributeName
Write the predicted datapoints of an asset attribute
Request
Path Parameters
assetId stringrequired
attributeName stringrequired
Header Parameters
Authorization string
X-Forwarded-Proto string
X-Forwarded-Host string
- application/json
Body array
- Array [
- ]
xint64
yobject
Responses
- default
default response
- */*
- Schema
Schema
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/predicted/:assetId/:attributeName' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '[
{
"x": 0,
"y": {}
}
]'
ResponseClear