/accesskeys/add
Last updated
Last updated
https://api.intserv.se/v1/accesskeys/add
Adds a new or updates an existing access key.
Authentication Type: Integration API Key
Field
Type
Description
id
string(uuid)
Identifier of the access key, if the intention is to update an existing one. Must be omitted if a new access key should be created.
key
AccessKey
pin
string(4)
(optional) 4-digit PIN.
valid_from_date
string
(optional) Time when the access key becomes valid. If omitted, the access key becomes valid right away.
valid_to_date
string
(optional) Time when the access key expires. If omitted, the access key will never expire.
access_levels
array[string(uuid)]
person
Person
(optional) Specifies details about the person a new access key should be assigned to. If omitted, an person will be automatically created. This field is not used when updating an existing access key.
Field
Type
Description
identification
string
type
string
Type of access key. Can be either proximity
or code
.
Field
Type
Description
id
string(uuid)
Identifier of an existing person to assign the access key to.
first_name
string(32)
(optional) The persons first name. If not specified, a name will be automatically generated. Only used when a new person is created.
last_name
string(32)
(optional) The persons last name. If not specified, a name will be automatically generated. Only used when a new person is created.
Sample payload to create a new access key assigned to a new person:
Sample payload to update an existing access key by id:
Access key specification. Must be specified if a new access key should be created. For updates the access key specification is used to identify the access key, but only if the id
field has been omitted. For more information about how access key are specified, read the overview.
(optional) A list of one or more access level identifiers that represent the access levels that should be assigned to the access key. Access levels can be fetched from the endpoint.
Identification number. Read the overview for more details.