Update Device Variable

Updates a device variable, if the requesting manager has access permissions to it.

URL: /api/v1/device-variables/{id}/ Method: PATCH

circle-info

The requesting manager must have access permissions to the device variable being updated.

Parameters

  • variable - String

  • value - String

Data example

Request body (application/json)
{
    "variable": "v7",
    "value": "ggg"
}

Success response

Code: 200 OK

Content example

Response body (application/json)
{
    "id": 2018,
    "created_at": "2021-02-01T07:24:07.617161Z",
    "variable": "v7",
    "value": "ggg",
    "device": 1112
}

Was this helpful?