Skip to main content

Create Identifier Entity

Create Identifier Entity. You can create identifiers with the next types:

  • card
  • ukey
  • inputCode
  • qr
  • license_plate
Request Body required
  • identifier_owner object required

    info about identifier owner

  • name string required

    identifier owner name

  • type string required

    Possible values: [owner, guest]

    owner type

  • identifier_type string required

    Possible values: [card, ukey, inputCode, qr, license_plate]

    type of identifier

  • identifier_number string required
    • 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 required

    Possible values: [second, all, first]

    locks or locks that are linked to identifier

  • valid object required

    object for valid identifier

  • time object required

    time for which identifier is valid

  • is_permanent boolean required

    identifier is permanently valid

  • from int64

    Unix Timestamp Date

  • to int64

    Unix Timestamp Date

  • passes object required

    passes that particular identifier provides

  • is_permanent boolean required

    passes are permanently granted

  • max_passes integer

    number of passes identifier can provide

Responses

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 it
  • POST /access/identifier/item/{identifierUid}/passes/reset - to reset left passes to max value
  • GET /access/identifier/item/{identifierUid}/qr - to generate QR image from identifier with type qr
  • POST/DELETE /access/identifier/item/{identifierUid}/timeprofile/{timeProfileUid} - to attach/detach a timeprofile to/from identifier
  • POST /apartment/item/{apartmentUid}/identifier/{identifierUid} - to attach an identifier to apartment
  • POST /apartment/item/unbind/identifier/{identifierUid} - to detach and identifier from apartment

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

Loading...