Update Datastream Value

Update Device Datastream Value

POST https://{server_address}/api/v1/organization/device/datastream

Headers

Name
Type
Description

Authorization*

Bearer {access_token}

Content-Type*

application/json

Request Body

Name
Type
Description

deviceId*

1

Device identifier.

dataStreamId*

1

Device datastream identifier.

value*

Some value

Device datastream value.

{
    "error": {
        "message": "Device with identifier 1 is not found or belong to another organization."
    }
}

Request examples:

# curl command example:
$ curl -X POST -H "Content-Type: application/json" \
      -H "Authorization: Bearer {accessToken}" \
      -d '{"deviceId":1,"dataStreamId":1,"value":5}' \
      https://fra1.blynk.cloud/api/v1/organization/device/datastream

$ curl -X POST -H "Content-Type: application/json" \
      -H "Authorization: Bearer eIdWHQqRfFmvP5LDDh-IGxPUzi7I27HthzCPAVmS" \
      -d '{"deviceId":1,"dataStreamId":1,"value":5}' \
      https://fra1.blynk.cloud/api/v1/organization/device/datastream

Last updated