Soft-remove a member from the tenant
DELETE
/v1/tenants/me/members/{userId}
const url = 'https://api.emite.cr/v1/tenants/me/members/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”userId
required
string
UUID of the user to remove.
Responses
Section titled “Responses”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).