Skip to main content
Leave Space
Removes the authenticated user’s membership from a space and from its child spaces, and ends their membership of those spaces’ chats. A ban in a child space is kept: leaving does not clear it.

Path Parameters

string
required
UUID of the space to leave.

Response

string
Confirmation message.

Errors

A service key acted for a user who has no membership in the space.
The user is not an active member of the space (for example, banned), including when a service key acts for them.
The user is the last admin of this space:
or of one of its child spaces, named by spaceId:
See also: useLeaveSpace