Create Access Key
Creates a new access key and either assigns it to a new or existing user.
When creating a new user together with the access key, the userId in the request is handled differently depending on the user type. Refer to Users documentation for more information.
For Mobile users, if the userId corresponds to a mobile phone number not already associated to a user, a new user will be created.
If the user already exists, firstName and lastName will be ignored.
Enter the Bearer Authorization string as following: Bearer Generated-JWT-Token
Contains details for creating a new access key.
For Mobile users, userId must always be a E.164 formatted mobile phone number (both when the intent is to create a new user or assigning the access key to an already existing user).
For None-Mobile users, uuid of the existing user to assign the access key to. To create a new user, userId must be omitted.
(optional) First name of the user.
(optional) Last name of the user.
Type of access key to create. Can be one of the following:
- code
- rfid
- mobile
Name of the key format to use for rfid access key type. For a description of access key rfid formats, refer to access key documentation..
Identification number of the access key. The format depends on the specified key type:
- code 4-8 digits. Use * to automatically generate a code (recommended).
- rfid 1-17 digits depending on the specified keyFormat.
(optional) A name of the access key. The name will be included in any notifications sent to the user to refer to this particular access key.
(optional) A PIN that should be used with the access key. Only applicable if keyType is rfid.
A list of accesses, specified by id, that should be authorized to the access key.
(optional) ISO 8601 formatted date from where the access key becomes active. If omitted, the access key will be active immediately after creation.
(optional) ISO 8601 formatted date from where the access key expires. If omitted, the access key will never expire.
Success
Bad Request
Forbidden
Conflict
Last updated