Creates a space, makes the caller its first admin, and attaches the submitted cover photo, logo and topics.
space[title] and a space[privacy] of public, private or secret are required, and the slug — derived from slug or the title — must be unique. Turning on settings.topic_required without any topic_ids is rejected. Cover photo, logo and OG image URLs must resolve to unclaimed uploaded media, which is then marked permanent. New spaces are appended to the end of their group serial order.
Endpoint
Method:
POSTPath:
/spacesEdition: Core
Controller:
SpaceController@createRoute source:
fluent-community/app/Http/Routes/api.php:9Controller source:
fluent-community/app/Http/Controllers/SpaceController.phpRequires community-admin access, or the admin role in the space named by
space_id.The creator is attached as a space admin automatically.
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.
POST Create Space
Creates a space, makes the caller its first admin, and attaches the submitted cover photo, logo and topics.
Controller: SpaceController@create
Route source: fluent-community/app/Http/Routes/api.php:9
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Request Body
Responses
Successful response