Set control inputs settings
Set settings for controlled inputs that can be used to close one or more relays
- application/json
Request Body required
items object[] required
Set of controlled inputs
number integer requiredPossible values:
>= 1and<= 2Number of controlled input
is_enabled boolean requiredIf enabled, controlled input reacts on input signal received
normally_closed boolean requiredDescribes sensor in idle state
relays integer[] requiredSet of relays switched when interface input signal received
notification object required
Notification settings
is_enabled boolean requiredDescribes, if notification enabled
after integer requiredPossible values:
>= 1000and<= 86400000If door opened more than specified time period(milliseconds), system will be notified. Will not be validated, if notification is disabled.
only_once boolean requiredNotify only once, when "after" time period reached
- 200
- 400
- 401
OK
Bad Request
- 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": "bad_request",
"message": "Bad request sent"
}
}
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"
}
}