Create Identifier Entity
Create Identifier Entity. You can create identifiers with the next types:
- card
- ukey
- inputCode
- qr
- application/json
Request Body required
identifier_owner object
name string requiredtype stringPossible values: [
owner
,guest
]- identifier_type string required
Possible values: [
card
,ukey
,inputCode
,qr
] - identifier_number hex|dec|uuid required
- hex or dec if identifier_type is card or ukey
- dec if identifier_type is inputCode
- uuid if identifier_type is qr
- lock string required
Possible values: [
first
,second
,all
]
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/identifiers/item/{identifierUid}
- to get info about identifier, update or delete itPOST /access/identifiers/item/{identifierUid}/passes/reset
- to reset left passes tomax
valueGET /access/identifiers/item/{identifierUid}/qr
- to generate QR image from identifier with typeqr
POST/DELETE /access/identifiers/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
}
- Wrong JSON body
- Identifier with that type and number already exist
Log In
Loading...