Skip to main content
Version: 1.2.0

Write to a single attribute with a timestamp

PUT 

https://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

Body

    object

Responses

The result of the write operation

Schema

    ref

    object

    idstring

    The asset identifier

    Possible values: Value must match regular expression ^[0-9A-Za-z]{22}$

    Example: 7Bt8M3cXEP6BHPh8r47DYf
    namestringrequired

    The attribute name

    Possible values: Value must match regular expression ^\w+$

    Example: location
    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]

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 -L -X PUT 'https://demo.openremote.io/api/master/asset/:assetId/attribute/:attributeName/:timestamp' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{}'
Request Collapse all
Base URL
https://demo.openremote.io/api/master
Auth
Parameters
— pathrequired
— pathrequired
— pathrequired
— header
— header
— header
Body
{}
ResponseClear

Click the Send API Request button above and see the response here!