Skip to main content
POST
Error

Authorizations

X-API-Key
string
header
required
X-Organization-Id
string
header
required

Path Parameters

team_id
string<uuid>
required

Team ID

Body

application/json
access_policy_id
string<uuid>
required
workspace_id
string<uuid>

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

attached_at
string
required
description
string
required
effect
enum<string>
required
Available options:
allow,
deny
id
string<uuid>
required
name
string
required
workspace_id
string<uuid>

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.