Skip to content

Removes the current user membership of a space and refreshes their cached space access.

Endpoint

  • Method: POST

  • Path: /spaces/{spaceSlug}/leave

  • Edition: Core

  • Controller: SpaceController@leave

  • Route source: fluent-community/app/Http/Routes/api.php:14

  • Controller source: fluent-community/app/Http/Controllers/SpaceController.php

  • Requires 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

POST
/spaces/{spaceSlug}/leave

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

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Parameters

Path Parameters

spaceSlug*

SpaceSlug extracted from the URL path.

Type
string
Required

Responses

Successful response

application/json
JSON
{
  
"message": "string"
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation