Create Access Level

Creates an Access Level granting the given Access Groups entry to the given
Doors during the given weekly schedule events. Every Site listed in sites
must be within the API key's scope, and every Door in doors must belong to
one of those Sites.

The name must be unique within the organization; a collision returns 409.
An organization can have a limited number of Access Levels; creating one
beyond that returns 409 with the limit_exceeded error code, and deleting unused
Access Levels frees room.
Two schedule events on the same weekday must not overlap or touch -- the
later one must start strictly after the earlier one ends; a violation returns
422.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Request body for POST /v2/access/access_levels.

access_groups
array of strings
required

The identifiers of the Access Groups granted door access by this Access Level.

Access Groups*
access_schedule_events
array of objects
required

The weekly windows during which this Access Level grants access. Windows on the same weekday must not overlap or touch: the later window must start strictly after the earlier one ends.

Access Schedule Events*
doors
array of strings
required

The identifiers of the Doors accessible under this Access Level. Every Door must belong to one of the Sites in sites.

Doors*
string
required

The name of the Access Level. Must be unique within the organization, at most 100 characters, and must not contain any of the characters <>{}[].

sites
array of strings
required

The identifiers of the Sites containing the Doors this Access Level applies to. At least one Site is required, and every Site must be within the scope of the API key.

Sites*
Responses
200

ok

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json