Skip to main content

Create an access control policy

PUT 

/api/v4/access_control_policies

Creates an access control policy, or updates the policy with the same id.

Minimum server version: 10.9

Permissions​

The manage_system permission, or by policy type:

  • parent: manage_team_access_rules on the team in team_id. The policy then belongs to that team, and an existing policy can only be updated if it already does (its scope_id is the team, or every channel it's assigned to is in the team).
  • channel: manage_channel_access_rules on the channel (the policy id).
  • team: manage_team_access_rules on the team (the policy id).
  • permission: only manage_system.

Without manage_system, a caller can't save rules they don't satisfy themselves, or change a policy's imports, scope or scope_id.

Request​

Responses​

Access control policy created successfully.