The whole hunk
from line 2, old and new numbered
/
lines
from line 2
22
33**POST** `/v1/organizations/federation_rules`
44
5**Requires an OAuth access token with the `org:admin` scope**, from `ant auth login --scope org:admin` or a workload identity federation rule; Admin API keys are not accepted. See [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
6
57Create a federation rule owned by your organization.
68
79The referenced issuer and the target service account must already exist
from line 18
1618`repo:YOUR_ORG/...`), or a CEL condition referencing one of those
1719identity claims (e.g. `claims.repository_owner`). OAuth callers may only
1820manage rules whose `oauth_scope` is `workspace:developer` or
19`workspace:inference`; other scopes require a Console session. Admin API
20keys are not accepted.
21`workspace:inference`; other scopes require a Console session.
2122
2223## Headers
2324
from line 249
248249curl https://api.anthropic.com/v1/organizations/federation_rules \
249250 -H 'Content-Type: application/json' \
250251 -H 'anthropic-version: 2023-06-01' \
251 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN" \
252 -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
252253 -d '{
253254 "issuer_id": "issuer_id",
254255 "match": {},