Skip to content

Soft-remove a member from the tenant

DELETE
/v1/tenants/me/members/{userId}
curl --request DELETE \
--url https://api.emite.cr/v1/tenants/me/members/example \
--header 'Authorization: Bearer <token>'

Sets deleted_at on the membership; the user row stays untouched. Refuses to remove the owner (use transfer-ownership) or the caller themselves (avoids accidental self-eviction).

userId
required
string

UUID of the user to remove.

Member removed.

Missing or invalid JWT.

Insufficient scope. Team management is JWT-only — API keys cannot reach these endpoints.

Member not found.

Removing the owner (OWNER_TRANSFER_REQUIRED) or self (MEMBER_CANNOT_REMOVE_SELF).