Removes a member from a space and refreshes their cached space access list.
Endpoint
Method:
POSTPath:
/spaces/{spaceSlug}/members/removeEdition: Core
Controller:
SpaceController@removeMemberRoute source:
fluent-community/app/Http/Routes/api.php:23Controller source:
fluent-community/app/Http/Controllers/SpaceController.phpRequires the
can_remove_memberpermission in this space.Destructive: the membership row is deleted, which revokes access to the space content immediately. Posts and comments the member made in the space 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 Remove Space Member
Removes a member from a space and refreshes their cached space access list.
Controller: SpaceController@removeMember
Route source: fluent-community/app/Http/Routes/api.php:23
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
SpaceSlug extracted from the URL path.
Request Body
Responses
Successful response