Update API Key Sharing Groups
Update default sharing groups for resources created by an API key.
PATCH
Update API Key Sharing Groups
When an API key creates a resource (agent or project), sharing groups automatically receive
owner access to that resource.
How it works:
- Key creation - The key’s service user is added as a member to each sharing group
- Resource creation - When the key creates an agent/project, each sharing group gets
ownerrole - Effect - All members of the sharing groups automatically get owner access
Path Parameters
Body
application/json
Request model for updating API key sharing groups.
Replacement sharing groups (future creations only).
Minimum array length:
1Response
Successful Response
Response model for API key (excludes sensitive data).
member_id of the creator.
The unique identifier of the API key.
Display prefix (e.g., 'sk_tu_abc...').
Human-readable name for the API key.
WorkOS organization ID.
When the key was created.
Optional description.
When the key was last used.
When the key was revoked (soft delete).
List of resource scopes for this API key.
Groups that receive default admin grants on resources created by this key.
Update API Key Sharing Groups