Request Topic and Payload
Topic
things5-production/v1/devices/<device-id>/cmd/write_variables_res
Success Payload Representation
The assets variables with their updated value
{
"request_id": "UUID sent in the request",
"assets": [{
"name": "configuration",
"values": [{
"name": "minimum_setpoint",
"value": "-20",
"type": "integer"
}, {
"name": "power_on_delay",
"value": "30",
"type": "integer"
}, {
"name": "temperature_hysteresis",
"value": "10.4",
"type": "float"
}, {
"name": "appliance_type",
"value": "visup_v2.3.0-beta",
"type": "string"
}]
}]
}
Asset error payload Representation
It is possibile to set errors for one or more asset fields if values are invalid
{
"request_id": "UUID sent in the request",
"assets": [
{
"name": "configuration",
"values": [
{
"name": "minimum_setpoint",
"value": "-20",
"type": "integer",
"errors": [
"variable error message if any",
"other variable error message if any"
]
},
{
"name": "power_on_delay",
"value": "30",
"type": "integer"
},
{
"name": "temperature_hysteresis",
"value": "10.4",
"type": "float"
},
{
"name": "appliance_type",
"value": "visup_v2.3.0-beta",
"type": "string"
}
]
}
],
"errors": [
"service error message if any",
"other service error message if any"
]
}
Generic error payload Representation
{
"request_id": "UUID sent in the request",
"errors": [
"invalid request"
]
}