Controller - PUT Update Controller
Updates an existing controller from the selected device.
Puthttps://api.iotstadium.com/ext/devices/:deviceId/actuator/:id
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{token}}"
}
Parameter
Field | Type | Description |
---|---|---|
actuator_name | String |
Name of your controller |
action_key | Integer |
Unique key for your controller |
actuator_action | Array |
The list of state of your controller |
{
"actuator_name": "test controller update postman 4",
"action_key": "129381293810293",
"actuator_action": [
{
"value": "1"
},
{
"value": "0"
}
]
}
{
"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
}