Replaces the sidebar link list shown on a space with the submitted set.
Each link is sanitised individually and the submitted array replaces the stored one wholesale.
Endpoint
Method:
POSTPath:
/spaces/{spaceSlug}/linksEdition: Core
Controller:
SpaceController@updateLinksRoute source:
fluent-community/app/Http/Routes/api.php:27Controller 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.
POST Update Space Links
Replaces the sidebar link list shown on a space with the submitted set.
Controller: SpaceController@updateLinks
Route source: fluent-community/app/Http/Routes/api.php:27
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