Creates or updates an inbound webhook that adds or removes the resolved user from a set of spaces and courses when it is called.
Pass id to update an existing hook; the stored running_count is carried over rather than reset. Submitted course_ids, space_ids, remove_course_ids and remove_space_ids are filtered against real records, and course ids are discarded entirely when the course_module feature is off.
Endpoint
Method:
POSTPath:
/admin/webhooksEdition: PRO
Controller:
ProAdminController@saveWebhookRoute source:
fluent-community-pro/app/Http/Routes/api.php:51Controller 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 Webhook
Creates or updates an inbound webhook that adds or removes the resolved user from a set of spaces and courses when it is called.
Controller: ProAdminController@saveWebhook
Route source: fluent-community-pro/app/Http/Routes/api.php:51
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Request Body
Responses
Successful response