Users
Delete organization membership by external ID
Removes a user from an organization using your application's external identifier for the user. Use this endpoint to revoke organization access without needing to store Scalekit's internal user ID.
delete/api/v1/memberships/organizations/{organization_id}/users:external/{external_id}
Path parameters
organization_idstring required
Unique organization identifier. Must start with 'org_' and be 1-32 characters long
external_idstring required
External system identifier from connected directories. Must match existing records
Response
User successfully marked for deletion. No content returned
{"stackTrail":"paths:/api/v1/memberships/organizations/{organization_id}/users%3Aexternal/{external_id}:delete:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}