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_ruleson the team inteam_id. The policy then belongs to that team, and an existing policy can only be updated if it already does (itsscope_idis the team, or every channel it's assigned to is in the team).channel:manage_channel_access_ruleson the channel (the policyid).team:manage_team_access_ruleson the team (the policyid).permission: onlymanage_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
- 200
- 400
- 401
- 403
- 500
- 501
Access control policy created successfully.
Invalid policy, a plugin-owned policy type, or a channel policy for a channel that isn't public or private, or is a team's default channel, shared or group-constrained.
No access token provided
Do not have appropriate permissions
Something went wrong with the server
A permission policy while permission policies are disabled, or a channel policy with permission rules while channel permission policies are disabled.