Update Datastream Property

Update Device DataStream Property Value

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

Headers

NameTypeDescription

Authorization*

Bearer {access_token}

Content-Type*

application/json

Request Body

NameTypeDescription

deviceId*

1

Device identifier.

dataStreamId*

1

Device datastream identifier.

value*

Some value

Device datastream value.

property*

color

{
    "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