Skip to content

Updates the title, description and expansion behaviour of a space group.

title is required and must not collide with any other space record title. The slug cannot be changed here.

Endpoint ​

  • Method: PUT

  • Path: /spaces/space_groups/{id}

  • Edition: Core

  • Controller: SpaceController@updateSpaceGroup

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

  • 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.

PUT Update Space Group​

PUT
/spaces/space_groups/{id}

Updates the title, description and expansion behaviour of a space group.

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

Authorizations​

ApplicationPasswords

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

Type
API Key (header: Authorization)

Parameters​

Path Parameters

id*

ID extracted from the URL path.

Type
integer
Required

Request Body​

application/json
JSON
{
  
"settings": {
  
  
"always_show_spaces": "string"
  
},
  
"title": "string"
}

Responses​

Successful response

application/json
JSON
{
  
"group": {
  
  
"cover_photo": "string",
  
  
"created_at": "string",
  
  
"created_by": "string",
  
  
"description": "string",
  
  
"id": 0,
  
  
"logo": "string",
  
  
"parent_id": "string",
  
  
"privacy": "string",
  
  
"serial": "string",
  
  
"settings": {
  
  
  
"always_show_spaces": "string",
  
  
  
"hide_members": "string"
  
  
},
  
  
"slug": "string",
  
  
"status": "string",
  
  
"title": "string",
  
  
"type": "string",
  
  
"updated_at": "string"
  
},
  
"message": "string"
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

FluentCommunity developer documentation