Skip to content

Applies a new sidebar order to the space groups.

Send indexes as a map of group id to zero-based position; each group serial is stored as the position plus one. An id that does not resolve to a group aborts the call.

Endpoint

  • Method: PATCH

  • Path: /spaces/space_groups/re-index

  • Edition: Core

  • Controller: SpaceController@updateSpaceGroupIndexes

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

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

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

PATCH
/spaces/space_groups/re-index

Applies a new sidebar order to the space groups.

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

Authorizations

ApplicationPasswords

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

Type
API Key (header: Authorization)

Request Body

application/json
JSON
{
  
"indexes": [
  
  
"string"
  
]
}

Responses

Successful response

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

Playground

Authorization
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation