Docs
Update Event Permissions
PUT /Events/{eventId}/permissions
PUT
/Events/{eventId}/permissionsReplaces the verbs a user is granted directly at the event (feature.verb, or * for admin) and returns the user's resulting direct event, area and collaborator verbs. Pass the full set to keep; anything omitted is removed, and role grants are untouched. A string that is not a verb valid at the event is refused (400) by name. Needs an event admin, or an admin of the organization that owns the event. A user cannot remove their own event admin or Event.View, and a verb that needs a feature flag the user's license lacks is refused. The user's event token is revoked, so they receive a new one on their next authorize call.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| eventId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| userId | uuid | Optional | |
| permissions | string[] | Optional |
Response
| Field | Type | Description |
|---|---|---|
| eventPermissions | string[]| null | |
| collaboratorPermissions | GetEventUserPermissionsResponseDomainPermissions[]| null | |
| areaPermissions | GetEventUserPermissionsResponseDomainPermissions[]| null |
GetEventUserPermissionsResponseDomainPermissions
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| name | string| null | |
| permissions | string[]| null |