Controller - PUT Update Controller
Put
{{url_iot_backend}}/ext/devices/:deviceId/actuator/:id
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{token}}"
}
Parameter
Field | Type | Description |
---|---|---|
deviceID | Integer |
The device ID of selected controller |
id | Integer |
The controller ID that you want to update |
{
"message": "device_actuator updated",
"data": {
"id": 144
},
"code": 200
}
{
"message": "Invalid Message",
"code": 400,
"errors": [
{
"field": "actuator_name",
"message": "actuator name already Exists."
}
]
}
{
"message": "data not found",
"errors": [
{
"message": "data not found",
"field": "device_actuator"
}
],
"code": 404
}
{
"message": "Not Allowed",
"error": {
"message": "Not Allowed",
"field": "user"
},
"code": 403
}