Workspaces
Bulk remove members from a workspace
Changed onRemove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. Management key required.
post/workspaces/{id}/members/remove
Request
- Base URLhttps://openrouter.ai/api/v1
- AuthHTTP bearer
Path parameters
id, string required
The workspace ID (UUID) or slug
Example:production
Request body
Bulk Remove Workspace Members Request required
user_ids, string[] required
List of user IDs to remove from the workspace
Example request
{
"user_ids": [
"user_abc123",
"user_def456"
]
}Response
Members removed successfully
Bulk Remove Workspace Members Response required
removed_count, integer required
Number of members removed
Example response
{
"removed_count": 2
}Changes
- info
added the optional property
openrouter_metadatato the response with the status - info
added the optional property
openrouter_metadatato the response with the status - info
added the optional property
openrouter_metadatato the response with the status
2 more changes in this revision
- info