Removes the current user membership of a space and refreshes their cached space access.
Endpoint
Method:
POSTPath:
/spaces/{spaceSlug}/leaveEdition: Core
Controller:
SpaceController@leaveRoute source:
fluent-community/app/Http/Routes/api.php:14Controller source:
fluent-community/app/Http/Controllers/SpaceController.phpRequires a signed-in user who currently holds a membership row.
Destructive: the membership is deleted, so a private or secret space cannot be rejoined without a new approval or invitation. Posts and comments already made are left in place.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
POST Leave Space
Removes the current user membership of a space and refreshes their cached space access.
Controller: SpaceController@leave
Route source: fluent-community/app/Http/Routes/api.php:14
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
SpaceSlug extracted from the URL path.
Responses
Successful response