Update Identifier Entity
Update Identifier Entity
- Available only in access control mode
Path Parameters
- uid integer required
Possible values:
>= 1
Unique Id for physical/input code identifier
- application/json
Request Body
- number string required
- hex or dec if type is card or ukey
- dec if type is input_code
- uuid if type is qr
- pattern for hex and dec - [0-9]{1,17} or ([0-9A-Fa-f]{2}[:-]){1,7}([0-9A-Fa-f]{2})
- hash value or empty string if type is face_id.
- type string required
Possible values: [
card
,ukey
,input_code
,qr
,face_id
]This model describes the types of identifiers
owner object
Info about identifier owner
name string requiredPossible values:
non-empty
and<= 128 characters
Owner's name
type string requiredPossible values: [
owner
,guest
]type of owner, can be either guest or genuine owner
- floors integer[] required
Possible values:
<= 98
List of floors available for this identifier
- apartments string[] required
Possible values: Value must match regular expression
^\d{2}-\d{2}$
List of apartments available for this identifier
- 200
- 400
- 401
OK
- Wrong Identifier uid
- Identifier with that type and number already exist
- Cannot create identifier with the same input code number as master code
- Cannot create identifier with same card number as master card
- 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"
}
}