/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 |
| 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. |
| AccessKey | 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 |
| string(4) | (optional) 4-digit PIN. |
| string | (optional) Time when the access key becomes valid. If omitted, the access key becomes valid right away. |
| string | (optional) Time when the access key expires. If omitted, the access key will never expire. |
| array[string(uuid)] | (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 /accesslevels/get_levels endpoint. |
| 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 |
| string | Identification number. Read the Access Keys overview for more details. |
| string | Type of access key. Can be either |
Field | Type | Description |
| string(uuid) | Identifier of an existing person to assign the access key to. |
| string(32) | (optional) The persons first name. If not specified, a name will be automatically generated. Only used when a new person is created. |
| 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: