Update Federation Rule
Changed onRequires 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.
Partially update a federation rule.
issuer_id is immutable. match and target are replaced as whole objects when set. Referenced service accounts and workspaces must exist in your organization; invalid references are rejected with a 400 error. Archived rules cannot be updated; this returns 400. Create a new rule instead. Rules on well-known shared issuers (GitHub Actions, GitLab, Buildkite, Terraform Cloud, Google) must constrain tenant identity via an identity-bearing claim, a tenant-pinning subject prefix (such as repo:YOUR_ORG/...), or a CEL condition referencing one of those identity claims (e.g. claims.repository_owner). On these issuers the requirement is re-checked on every update; if an existing rule's stored match does not yet constrain tenant identity, any update (even a rename or description change) must also supply a conforming match in the same request. OAuth callers may only manage rules whose oauth_scope is workspace:developer or workspace:inference; other scopes require a Console session.
Request
- Base URLhttps://api.anthropic.com
- Authnone declared
Path parameters
ID of the federation rule to update.
Headers
The version of the Claude API you want to use.
Read more about versioning and our version history here.
Request body
Example request
{
"target": {
"service_account_id": "svac_01SDCCSbTxrXDpWc1phhtcfK"
}
}Response
Successful Response
Example response
{
"created_at": "2024-10-30T23:58:27.427722Z",
"id": "fdrl_01SDCCSbTxrXDpWc1phhtcfK",
"name": "prod-deploy-pipeline",
"target": {
"service_account_id": "svac_01SDCCSbTxrXDpWc1phhtcfK"
},
"updated_at": "2024-10-30T23:58:27.427722Z"
}Changes
- info
endpoint added
- info