Skip to content

Moves a space into a different space group.

Send space_id and group_id; both must resolve. The space keeps its existing serial, so a reindex call usually follows to place it correctly within the new group.

Endpoint

  • Method: PATCH

  • Path: /spaces/space_groups/move-space

  • Edition: Core

  • Controller: SpaceController@moveSpace

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

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

  • Requires community-admin access, or the admin role in the space named by space_id.

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.

PATCH Move Space

PATCH
/spaces/space_groups/move-space

Moves a space into a different space group.

Controller: SpaceController@moveSpace
Route source: fluent-community/app/Http/Routes/api.php:38

Authorizations

ApplicationPasswords

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

Type
API Key (header: Authorization)

Request Body

application/json
JSON
{
  
"space_id": "string",
  
"group_id": "string"
}

Responses

Successful response

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

Playground

Authorization
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation