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:
PATCHPath:
/spaces/space_groups/move-spaceEdition: Core
Controller:
SpaceController@moveSpaceRoute source:
fluent-community/app/Http/Routes/api.php:38Controller source:
fluent-community/app/Http/Controllers/SpaceController.phpRequires 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
Moves a space into a different space group.
Controller: SpaceController@moveSpace
Route source: fluent-community/app/Http/Routes/api.php:38
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Request Body
Responses
Successful response