Remove a tenant member

Remove someone from a tenant.

DELETE /organizations/{org}/tenants/{tenantId}/members/{userId}

Removes the membership. The user account itself is left alone.

Authorization

Org owner, or owner / admin of this tenant. Anyone else gets 403 forbidden.

Path parameters

NameTypeDescription
orgstringThe organization: its id (org_…) or its slug. It has to be an org your token can manage (see Who can call it)
tenantIdstringThe tenant, tnt_…
userIdstringThe member, usr_…

Response

204 No Content

Errors

StatuserrorWhen
403forbiddenYou may not manage this tenant’s members
404not_foundNo such member, tenant or org, or an id of the wrong kind

Example

curl -X DELETE https://loginwith.loginwith.dev/organizations/acme/tenants/tnt_65f1c2a9e4b0d3f7a1c8e908/members/usr_65f1c2a9e4b0d3f7a1c8e909 \
  -H "Authorization: Bearer $TOKEN"