Update org service key
Update an API key’s role(s) in place without rotating the key.
Organization Operators cannot assign the Organization Admin role or change a key that already holds it, and no key can change its own roles. Workspace-scoped keys also require key-management permission in every workspace they cover. Applies to both org-scoped and workspace-scoped keys.
Authorizations
Path Parameters
Body
API key PATCH schema.
role_id: New workspace-level role to apply to every workspace identity attached to the key. Optional; omit to leave workspace roles unchanged. org_role_id: New org-level role to apply to the key's org identity. Workspace-scoped keys accept only the built-in ORGANIZATION_VIEWER or ORGANIZATION_RESTRICTED role. Optional; omit to leave the organization role unchanged.
Response
Successful Response
API key GET schema.
role_id, org_role_id, and access_scope let clients render the key's current role state without a second round trip. For workspace-scoped service keys, org_role_id comes from the parent organization identity.
organization, workspace Whether tracing-key deletion authority has been confirmed. Legacy key responses do not evaluate this capability.

