Create Identifier Entity
Create Identifier Entity. You can create identifiers with the next types:
- card
- ukey
- inputCode
- qr
- license_plate
- application/json
Request Body required
identifier_owner object
info about identifier owner
name string requiredidentifier owner name
type string requiredPossible values: [
owner
,guest
]owner type
- identifier_type string
Possible values: [
card
,ukey
,inputCode
,qr
,license_plate
]type of identifier
- identifier_number string
- hex or dec if identifier_type is card or ukey
- dec if identifier_type is inputCode
- uuid if identifier_type is qr
- pattern for hex and dec if identifier_type is card or ukey - [0-9]{1,10} or ([0-9A-Fa-f]{2}[:-]){1,7}([0-9A-Fa-f]{2})
- 1..100 characters if identifier_type is license_plate
- lock string
Possible values: [
second
,all
,first
]locks or locks that are linked to identifier
Responses
- 200
- 400
- 401
The uid
value returned in the response can be used as the identifierUid
parameter in next requests:
GET/PATCH/DELETE /access/identifier/item/{identifierUid}
- to get info about identifier, update or delete itPOST /access/identifier/item/{identifierUid}/passes/reset
- to reset left passes tomax
valueGET /access/identifier/item/{identifierUid}/qr
- to generate QR image from identifier with typeqr
POST/DELETE /access/identifier/item/{identifierUid}/timeprofile/{timeProfileUid}
- to attach/detach a timeprofile to/from identifierPOST /apartment/item/{apartmentUid}/identifier/{identifierUid}
- to attach an identifier to apartmentPOST /apartment/item/unbind/identifier/{identifierUid}
- to detach and identifier from apartment
- application/json
- Schema
- Example (from schema)
- Example
Schema
- uid integer
Possible values:
>= -1
UID for entities referenses. If value is
-1
, then it means that is no entity reference for this structure
{
"uid": 3
}
{
"uid": 3
}
- 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
- Validation error. Required fields are not provided.
- Missed json body or wrong param. Response sample:
"error": "Wrong JSON body"
- Required field is not provided. Response sample:
"error": "Wrong JSON body: no value for `param`"
where param
- is a required field that was not provided
- Field was of the wrong type. Response sample:
"error": "Wrong JSON body: value `param` was of the wrong type"
where param
- is a field of the wrong type
- application/json
- Schema
- Example (from schema)
- Identifier exist
- Duplicate master code
- Duplicate master card
Schema
- error string
error type/info
{
"error": true
}
{
"error": "Identifier with that type and number already exist"
}
{
"error": "Cannot create identifier with the same input code number as master code"
}
{
"error": "Cannot create identifier with same card number as master card"
}
Log In
- application/json
- Schema
- Example (from schema)
- Example
Schema
- error string
error message
{
"error": "Log In"
}
{
"error": "Log In"
}
Loading...