# Update Datastream Attribute
Request Method: PUT
URL: http://api.heclouds.com/devices/device_id/datastreams/datastream_id
device_id: need to be replaced with device ID
datastream_id : need to be replaced with device datastream ID
Parameter Name | Format | Required | Description |
---|---|---|---|
tags | array-string | no | datastream tags, can be one or more |
unit | string | no | data unit |
unit_symbol | string | no | data unit symbol |
Parameter Name | Format | Description |
---|---|---|
errno | int | code for call error, 0 indicates call is successful |
error | string | error description, "succ" indicates call is successful |
POST http://api.heclouds.com/devices/20474930/datastreams/speed HTTP/1.1
{
"tags": ["mobile"],
"unit": "m/s",
"unit_symbol": "m/s"
}
{
"errno":0,
"error":"succ"
}