Add Federation Rule Workspace
api/admin/federation_rules/workspaces/create
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/admin/federation_rules/workspaces/create Changed · +12 / -15 lines
# Add Federation Rule Workspace ## Path parameters ## Headers ## Body parameters ## Returns ## Example ### Response (200) ## Add Federation Rule Workspace ### Path Parameters ### Header Parameters ### Body Parameters ### Returns ### Example #### Response
---- -title: Add Federation Rule Workspace -url: https://platform.claude.com/docs/en/api/admin/federation_rules/workspaces/create ---- +# Add Federation Rule Workspace -## Add Federation Rule Workspace +**POST** `/v1/organizations/federation_rules/{federation_rule_id}/workspaces` -**post** `/v1/organizations/federation_rules/{federation_rule_id}/workspaces` - Enable a federation rule for a workspace. Idempotent; re-enabling returns the existing enablement. The rule and
`oauth_scope` is `workspace:developer` or `workspace:inference`; other scopes require a Console session. Admin API keys are not accepted. -### Path Parameters +## Path parameters - `federation_rule_id: string` ID of the federation rule. -### Header Parameters +## Headers - `"anthropic-beta": optional array of string`
To use multiple betas, use a comma separated list like `beta1,beta2` or specify the header multiple times for each beta. -### Body Parameters +## Body parameters - `workspace_id: string` Tagged ID of the workspace to enable this rule for. -### Returns +## Returns - `created_at: string` When this workspace was enabled for the rule. + format: date-time + - `created_by_actor_id: string or null` Tagged ID (`user_...` or `svac_...`) of the actor that enabled this workspace for the rule, if known.
- `type: "federation_rule_workspace"` - - `"federation_rule_workspace"` + default: federation_rule_workspace - `workspace_id: string`
Workspace display name. Populated when listing; null in the enable response. -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID/workspaces \ -H 'Content-Type: application/json' \ -H 'anthropic-version: 2023-06-01' \
}' ``` -#### Response +### Response (200) ```json {