Updates a space record and its settings, and returns a redirect URL when the change altered its slug.
The payload is nested under data. A blank title is rejected and a slug already taken by another space is rejected. Turning on topic_required requires the space to end up with at least one topic, whether from the payload or from what is already attached. Sending a media field empty clears that image. topic_ids, when present, replaces the topic set and is trimmed to the configured maximum. Any meta_settings block is dispatched to per-provider hooks rather than stored directly.
Endpoint
Method:
PUTPath:
/spaces/{spaceSlug}/by-slugEdition: Core
Controller:
SpaceController@patchBySlugRoute source:
fluent-community/app/Http/Routes/api.php:11Controller source:
fluent-community/app/Http/Controllers/SpaceController.phpRequires community-admin access or the admin role in this space.
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 By Slug
Updates a space record and its settings, and returns a redirect URL when the change altered its slug.
Controller: SpaceController@patchBySlug
Route source: fluent-community/app/Http/Routes/api.php:11
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
SpaceSlug extracted from the URL path.
Request Body
Responses
Successful response