Update Datastream Property

Update Device DataStream Property Value

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

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.

property*

color

DataStream property name. See Widget Properties.

{
    "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,"property":"color","value":"red"}' \
      https://fra1.blynk.cloud/api/v1/organization/device/datastream/property

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

Last updated