Attach an access policy to a team
Attaches an existing access policy in the organization to a team. A workspace scoped team’s policy applies in its workspace. An organization-wide team’s policy applies in the workspace_id given, or in every workspace the team has access to when it is omitted. Returns 201 when the policy is attached, or 200 when it was already attached. A workspace scoped team needs workspaces:teams:manage-policies in its workspace. An organization scoped team needs organization:teams:manage-policies, and for a policy in one workspace the caller must also be a member of that workspace.
Path Parameters
Team ID
Body
WorkspaceID limits an organization-wide team's policy to one workspace. Omit it to apply the policy in every workspace the team has access to. A workspace team's policy always applies in the team's workspace, so this must be omitted or match it.
Response
The policy was already attached
allow, deny WorkspaceID is the workspace the policy applies in. It is omitted when the policy applies in every workspace an organization-wide team has access to.

