Creates or updates a custom sidebar link inside a space group, including its icon, target and visibility rule.
A title, a parent_id space group, a privacy value of public, logged_in, members_only or logged_out_only, and a valid settings.permalink URL are all required. members_only links additionally need settings.membership_ids, which are checked against real spaces. Supplying shape_svg clears any emoji icon. New links are appended at the end of the group serial order.
Endpoint
Method:
POSTPath:
/admin/linksEdition: PRO
Controller:
ProAdminController@saveSidebarLinkRoute source:
fluent-community-pro/app/Http/Routes/api.php:54Controller source:
fluent-community-pro/app/Http/Controllers/ProAdminController.phpRequires the FluentCommunity community-admin permission (or a WordPress super admin).
Requires FluentCommunity Pro.
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 Save Sidebar Link
Creates or updates a custom sidebar link inside a space group, including its icon, target and visibility rule.
Controller: ProAdminController@saveSidebarLink
Route source: fluent-community-pro/app/Http/Routes/api.php:54
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Request Body
Responses
Successful response