Update Org Service Key
Update an API key’s role(s) in place without rotating the key.
Restricted to org admins (ORGANIZATION_MANAGE). Applies to both org-scoped and workspace-scoped keys listed in /orgs/current/service-keys.
Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
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. Only valid for org-scoped keys (workspaces=None at creation). Optional.
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 keys, org_role_id is null (the api_key's identity_id points at a workspace identity, so there is no caller-meaningful org role to surface).
organization, workspace 
