from line 1
1---
2title: Add Federation Rule Workspace
3url: https://platform.claude.com/docs/en/api/admin/federation_rules/workspaces/create
4---
1# Add Federation Rule Workspace
52
6## Add Federation Rule Workspace
3**POST** `/v1/organizations/federation_rules/{federation_rule_id}/workspaces`
74
8**post** `/v1/organizations/federation_rules/{federation_rule_id}/workspaces`
9
105Enable a federation rule for a workspace.
116
127Idempotent; re-enabling returns the existing enablement. The rule and
from line 13
1813`oauth_scope` is `workspace:developer` or `workspace:inference`; other
1914scopes require a Console session. Admin API keys are not accepted.
2015
21### Path Parameters
16## Path parameters
2217
2318- `federation_rule_id: string`
2419
2520 ID of the federation rule.
2621
27### Header Parameters
22## Headers
2823
2924- `"anthropic-beta": optional array of string`
3025
from line 27
3227
3328 To use multiple betas, use a comma separated list like `beta1,beta2` or specify the header multiple times for each beta.
3429
35### Body Parameters
30## Body parameters
3631
3732- `workspace_id: string`
3833
3934 Tagged ID of the workspace to enable this rule for.
4035
41### Returns
36## Returns
4237
4338- `created_at: string`
4439
4540 When this workspace was enabled for the rule.
4641
42 format: date-time
43
4744- `created_by_actor_id: string or null`
4845
4946 Tagged ID (`user_...` or `svac_...`) of the actor that enabled this workspace for the rule, if known.
from line 51
5451
5552- `type: "federation_rule_workspace"`
5653
57 - `"federation_rule_workspace"`
54 default: federation_rule_workspace
5855
5956- `workspace_id: string`
6057
from line 61
6461
6562 Workspace display name. Populated when listing; null in the enable response.
6663
67### Example
64## Example
6865
69```http
66```bash
7067curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID/workspaces \
7168 -H 'Content-Type: application/json' \
7269 -H 'anthropic-version: 2023-06-01' \
from line 73
7673 }'
7774```
7875
79#### Response
76### Response (200)
8077
8178```json
8279{
No line in this hunk matches that.