Applies a new sidebar order to spaces within their group.
Unlike the group variant, indexes here is an ordered array of space ids and the position in the array becomes the serial. An id that does not resolve to a space aborts the call.
Endpoint
Method:
PATCHPath:
/spaces/space_groups/re-index-spacesEdition: Core
Controller:
SpaceController@updateSpaceIndexesRoute source:
fluent-community/app/Http/Routes/api.php:37Controller source:
fluent-community/app/Http/Controllers/SpaceController.phpRequires community-admin or course-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 Reindex Spaces
Applies a new sidebar order to spaces within their group.
Controller: SpaceController@updateSpaceIndexes
Route source: fluent-community/app/Http/Routes/api.php:37
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Request Body
Responses
Successful response