Skip to main content

Add activities to an access policy

PUT 

/api/v1/AccessControlPolicy/:policyId/Activity

Adds activities or activity groups to an access policy and returns how many items passed and how many failed. Items already in the policy count as passed. Items whose id is not found or whose type is not 0 or 1 are counted as failed. For a custom-role user, items outside their role are skipped and counted as failed.

Permission required: Administrator, or a custom role with the [AP] Modify Activities permission on this policy.

Values for entityType: 0 = Activity, 1 = ActivityGroup.

Request​

Responses​

The result: passed (number of items changed), failed (number of items not changed) and report (a list of messages, which this route leaves empty).