Merges the submitted messaging settings over the stored ones and saves the realtime socket credentials when realtime chat is switched on.
Keys not already present in the stored config are discarded. socket_config is only written when realtime_enabled is yes in the merged result.
Endpoint
Method:
POSTPath:
/admin/messaging-settingEdition: PRO
Controller:
ProAdminController@updateMessagingSettingsRoute source:
fluent-community-pro/app/Http/Routes/api.php:22Controller source:
fluent-community-pro/app/Http/Controllers/ProAdminController.phpRequires the FluentCommunity community-admin permission (or a WordPress super admin).
Requires FluentCommunity Pro and the Fluent Messaging plugin.
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 Messaging Settings
Merges the submitted messaging settings over the stored ones and saves the realtime socket credentials when realtime chat is switched on.
Controller: ProAdminController@updateMessagingSettings
Route source: fluent-community-pro/app/Http/Routes/api.php:22
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Request Body
Responses
Successful response