Set port-floor mapping
Set port mapping
Query Parameters
- mode string
Possible values: [
access-control-manual
,call-any
,call-up
,call-down
,call-up-down
]see DeviceMode model
- application/json
Request Body array
- floor integer required
Possible values:
<= 98
logical floor number
- name string required
Possible values:
non-empty
and<= 64 characters
floor name 64 UTF-8 chars
- is_public boolean required
Default value:
false
Sets this floor available for all users of elevator (Works in access control mode)
- is_panel_floor boolean
Default value:
false
Sets this floor as a floor of panel installation, this parameter is needed for correct lift functioning in 2-step mode (Access control mode with possibility to allow guest to go to the floor of the user)
- apartments string[] required
Possible values: Value must match regular expression
^\d{2}-\d{2}$
List of apartments on the floor
- ports integer[] required
Possible values:
>= 1
,<= 16
port (relay) numbers associated with the floor
- 200
- 400
- 401
OK
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error object
object containing info about error
code stringPossible values: [
invalid_authentication
,permission_denied
,not_valid
,system_error
]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 stringextended info on error
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
Please log in
- application/json
- Schema
- Example (from schema)
- Example
Schema
error object
object containing info about error
code stringPossible values: [
invalid_authentication
,permission_denied
,not_valid
,system_error
]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 stringextended info on error
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
{
"error": {
"code": "invalid_authentication",
"message": "Log In"
}
}