Automation - GET Actuator
Getting the actuators
Get{{url_iot_backend}}/ext/devices/:id/actuator
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{token}}"
},
{
"message": "success",
"code": 200,
"data": {
"device_actuators": [
{
"id": 140,
"actuator_name": "ets",
"action_key": "2139129123",
"access_type": null,
"last_update": "",
"device_actuator_action": [
{
"device_actuator_id": 140,
"id": 733,
"action_value": "on"
},
{
"device_actuator_id": 140,
"id": 734,
"action_value": "off"
}
]
}
]
}
}
{
"success": false,
"error": {
"code": 404,
"message": "Device not found or has no actuators"
}
}
{
"success": false,
"error": {
"code": 401,
"message": "Unauthorized: Invalid token"
}
}
{
"success": false,
"error": {
"code": 403,
"message": "No permission to access device actuators"
}
}