post https://gss-dev.aylanetworks.com/groupsceneservice/v1/collections//datapoint.json
This API is used to post datapoints to a group associated with multiple devices.
NOTE: If you get response code 206, it indicates that some of the properties in the request are associated with the devices in the group and datapoint is posted successfully for them.
{
"properties": [
{
"property_name": "string_input_tp",
"property_value": "My Strings"
},
{
"property_name": "integer_input_tp",
"property_value": 108
}
]
}
[
{
"dsn": "TESTDSN_122297_000",
"name": "string_input_tp",
"status": 201,
"datapoint": {
"updated_at": "2021-02-24T18:37:27Z",
"created_at": "2021-02-24T18:37:27Z",
"echo": false,
"metadata": {},
"value": "My Strings"
}
},
{
"dsn": "TESTDSN_122297_000",
"name": "integer_input_tp",
"status": 201,
"datapoint": {
"updated_at": "2021-02-24T18:37:28Z",
"created_at": "2021-02-24T18:37:28Z",
"echo": false,
"metadata": {},
"value": 108
}
},
{
"dsn": "TESTDSN_223051_000",
"name": "string_input_tp",
"status": 201,
"datapoint": {
"updated_at": "2021-02-24T18:37:28Z",
"created_at": "2021-02-24T18:37:28Z",
"echo": false,
"metadata": {},
"value": "My Strings"
}
},
{
"dsn": "TESTDSN_223051_000",
"name": "integer_input_tp",
"status": 201,
"datapoint": {
"updated_at": "2021-02-24T18:37:28Z",
"created_at": "2021-02-24T18:37:28Z",
"echo": false,
"metadata": {},
"value": 108
}
}
]