Returns the space groups with their spaces expanded, plus any space or course that has not been assigned to a group.
Pass options_only for the trimmed id and title list used by pickers, which any portal user may read. The full response formats each community space for the caller and attaches topics to courses, so it is considerably heavier.
Endpoint
Method:
GETPath:
/spaces/space_groupsEdition: Core
Controller:
SpaceController@getSpaceGroupsRoute source:
fluent-community/app/Http/Routes/api.php:32Controller source:
fluent-community/app/Http/Controllers/SpaceController.phpThe full listing 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.
GET List Space Groups
Returns the space groups with their spaces expanded, plus any space or course that has not been assigned to a group.
Controller: SpaceController@getSpaceGroups
Route source: fluent-community/app/Http/Routes/api.php:32
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Query Parameters
Options Only read via $request->get() in getSpaceGroups().
Responses
Successful response