Add activities and activity groups to a role
POST/api/v1/RolesRole/:roleId/ActivityOrGroup
Adds activities or activity groups to the scope of a role. Use it to limit the activities that role members can work with. Entries already in the scope are skipped.
Permission required: Administrator role.
Values for entityType: 0 = Activity, 1 = ActivityGroup.
Request
Responses
- 200
- 400
- 403
- 404
Returns the number of entries added.
The entries could not be added.
The signed-in user does not have the required role, or the account has read-only administrator access.
The role does not exist.