POST/eventAccessGrants
Gives a department, person or API key access to every event matching a condition on event type, status,
location and event attributes (null = every event). Roles and permissions are those used inside an event; a
permission that is not valid at the organization can only be granted by an organization admin. One grant per
grantee and condition: a second with the same condition is refused.
Request Body
| Field | Type | Required | Description |
|---|
| granteeType | string | Optional | |
| granteeId | uuid | Optional | |
| accessRoleIds | uuid[] | Optional | |
| permissions | string[] | Optional | |
| condition | EventAccessCondition | Optional | |
EventAccessCondition
| Field | Type | Description |
|---|
| logic | string| null | |
| groups | EventAccessConditionGroup[]| null | |
| attributeIds | uuid[]| null | |
EventAccessConditionGroup
| Field | Type | Description |
|---|
| logic | string| null | |
| conditions | EventAccessConditionCondition[]| null | |
EventAccessConditionCondition
| Field | Type | Description |
|---|
| key | string| null | |
| operator | string| null | |
| value | string| null | |
Response
| Field | Type | Description |
|---|
| id | uuid | |
| granteeType | string| null | |
| granteeId | uuid | |
| granteeName | string| null | |
| accessRoles | GetEventAccessGrantResponseRoleInfo[]| null | |
| permissions | string[]| null | |
| condition | EventAccessCondition | |
| matchingEventCount | integer | |
GetEventAccessGrantResponseRoleInfo
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |