apicheats.dev Cheat sheet Raw .md
POST

Try POST /v1/organizations/federation_rules/{federation_rule_id} — Claude API

Claude playground

Update Federation Rule

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.anthropic.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

9 body fields
  • applies_to_all_workspaces · optional · boolean — When true, enables this rule for every workspace in the org (including workspaces created later). Setting `false` is rejected with 400 if no workspace would remain enabled; a rule with only a legacy `workspace_id` binding continues to mint.
  • attributes · optional · object — Replaces the CEL expressions `{name: expr}` extracting named values from claims. Send null to clear them. Not yet supported; any non-empty value is rejected with 400.
  • description · optional · string — Replaces the description. Omit to leave unchanged; send `null` to clear (the field is stored as an empty string).
  • match · optional · object — Replaces the entire match object. All populated matcher fields must pass.
  • name · optional · string — Replaces the slug identifier (lowercase, digits, hyphens). Unique within the organization; a duplicate name returns 409.
  • oauth_scope · optional · string — Replaces the space-separated OAuth scopes granted on minted tokens. OAuth callers may only set `workspace:developer` or `workspace:inference`; other scopes (such as `org:admin`) require a Console session.
  • target · optional · object — Replaces the entire target object. Currently always a `service_account` target.
  • token_lifetime_seconds · optional · integer — Replaces the lifetime in seconds for access tokens minted via this rule (60-86400). Minted tokens are capped at `max(60, min(this value, 2 × remaining assertion validity))` seconds.
  • workspace_id · optional · string — Replaces the existing single workspace enablement (the previous one is removed). Rejected with 400 if the rule is enabled for more than one workspace; use the `/federation_rules/{federation_rule_id}/workspaces` sub-resource instead.