SCIM

Delete a SCIM group mapping

Changed on

Delete a SCIM group-to-workspace mapping. Deleting a mapping that has guardrail policies attached returns 403 unless the organization has guardrail policy management enabled and the key also has guardrail-update authority, in which case deleting the mapping releases its attached guardrail assignments. Management key required.

delete/scim/group-mappings/{id}

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string uuid required

Query parameters

keep_members, union required

Required. Whether to keep workspace members after deleting the mapping. false removes SCIM-managed workspace memberships that no surviving mapping grants (including members of this group and any stale SCIM-managed memberships outside it); true deletes the mapping while converting current members of an active mapped group to manually-managed (retaining the lower of their stored role and the deleted mapping's role) if no other mapping grants them access to the workspace (surviving mappings to the same workspace take precedence and keep the member SCIM-managed with their remaining role; orphaned SCIM memberships and members of a soft-deleted group are still revoked). There is deliberately no default — omitting it returns 400 so the destructive path cannot be reached by accident. Mirrors the dashboard, whose DeleteMappingSchema.keepMembers is likewise required.

'true' | 'false' required
OR
boolean required

Response

SCIM group mapping deleted

DeleteScimGroupMappingResponse required
deleted, true required

Changes