Update Access Level

Applies a partial update to the Access Level with the given identifier. Only
the fields present in the request body are changed; omitted fields keep their
current value. Provide at least one field.

access_groups, sites, and doors are each replaced wholesale when
supplied, so send the complete intended list rather than only the additions.

The Access Level's weekly schedule events cannot be changed here; they are
managed by the nested access_schedule_events endpoints and are preserved
across every update. This differs from the v1 endpoint, where the full event
list had to be resent with every update.

A name that collides with another Access Level returns 409. Requesting a Site
outside the API key's scope returns 404.

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

Request body for PATCH /v2/access/access_levels/<access_level_id>.

Every field is optional. Only the fields present in the request body are
changed; omitted fields keep their current value.

access_schedule_events is deliberately absent: the weekly windows of an
Access Level are managed exclusively through the nested
/v2/access/access_levels/<access_level_id>/access_schedule_events
endpoints. Supplying access_schedule_events here is a validation error.
This differs from the v1 PUT endpoint, which required the complete event
list on every update.

access_groups
array of strings

The complete replacement list of Access Group identifiers granted door access by this Access Level.

Access Groups
doors
array of strings

The complete replacement list of Door identifiers accessible under this Access Level. Every Door must belong to one of the Access Level's Sites.

Doors
string

The new 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

The complete replacement list of Site identifiers 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

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