Get control inputs settings
Returns settings for controlled inputs that can be used to close one or more relays
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
- items object[]
Set of controlled inputs
- available_relays integer[]
Set of relays available for blocking when alarm fired
{
"items": [
{
"number": 1,
"is_enabled": false,
"normally_closed": false,
"relays": [
1,
2,
3,
4
],
"notification": {
"is_enabled": true,
"after": 1000,
"only_once": true
},
"is_active": false
}
],
"available_relays": [
1,
2,
3,
4
]
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Example
Schema
error object
Error object, contains error details
code stringPossible values: [
invalid_authentication,permission_denied,not_valid,system_error,bad_request,connection_timeout]Error code
message stringError message
data object
Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc.
param stringContains validation error details
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
{
"error": {
"code": "invalid_authentication",
"message": "Invalid authentication"
}
}
Loading...