Docs
Update Area Permissions
PUT /Areas/{areaId}/permissions
PUT
/Areas/{areaId}/permissionsReplaces the verbs a user is granted directly on one area (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 an area is refused (400) by name. Needs an event admin event token.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| areaId | 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 |