The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Create Federation Rule
3url: https://platform.claude.com/docs/en/api/beta/organization/federation/rules/create
4---
5
16# Create Federation Rule
27
38**POST** `/v1/organizations/federation_rules`
from line 33
2833
2934 - `string`
3035
31 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
36 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
3237
3338 - `"message-batches-2024-09-24"`
3439
from line 81
7681
7782 - `"user-profiles-2026-08-18"`
7883
84 - `"user-profiles-2026-09-04"`
85
7986 - `"advisor-tool-2026-03-01"`
8087
8188 - `"managed-agents-2026-04-01"`
from line 173
166173
167174 Identity that tokens minted via this rule act as. Currently always a `service_account` target.
168175
176 - `type: "service_account"`
177
169178 - `service_account_id: string`
170179
171180 Tagged ID of the service account to mint tokens for.
172181
173 - `type: "service_account"`
174
175182 - `service_account_name: optional string or null`
176183
177184 Service account's display name at read time. Ignored on writes.
from line 222
215222 rules carrying only the legacy `workspace_id` binding do not enforce
216223 this.
217224
225 - `type: "federation_rule"`
226
227 default: federation_rule
228
218229 - `id: string`
219230
220231 Tagged ID of the federation rule.
from line 308
297308
298309 Identity that tokens minted via this rule act as. Currently always a `service_account` target.
299310
311 - `type: "service_account"`
312
300313 - `service_account_id: string`
301314
302315 Tagged ID of the service account to mint tokens for.
303316
304 - `type: "service_account"`
305
306317 - `service_account_name: optional string or null`
307318
308319 Service account's display name at read time. Ignored on writes.
from line 321
310321 - `token_lifetime_seconds: number`
311322
312323 Lifetime in seconds of access tokens minted via this rule. Minted tokens are capped at `max(60, min(this value, 2 × remaining assertion validity))` seconds.
313
314 - `type: "federation_rule"`
315
316 default: federation_rule
317324
318325 - `updated_at: string`
319326