Grants or replaces the FluentCommunity role set for one WordPress user, creating their community profile if they do not have one yet.
user_id and a non-empty roles array are required. Granting admin discards every other role in the payload, and course_admin supersedes course_creatror. Existing managers are updated in place; the role set is stored whole, so omitting a role removes it.
Endpoint
Method:
POSTPath:
/admin/managersEdition: PRO
Controller:
ProAdminController@addOrUpdateManagerRoute source:
fluent-community-pro/app/Http/Routes/api.php:11Controller 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 Admin Manager
Grants or replaces the FluentCommunity role set for one WordPress user, creating their community profile if they do not have one yet.
Controller: ProAdminController@addOrUpdateManager
Route source: fluent-community-pro/app/Http/Routes/api.php:11
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Request Body
Responses
Successful response