Skip to content

Stores the content moderation configuration and keeps the content_moderation feature flag in step with its is_enabled value.

Recognised keys are is_enabled, profanity_filter, flag_after_threshold, first_comment_approval, auto_flag_user_reject_threshold and auto_flag_user_report_threshold. Any other key sent in config is stored as submitted rather than being discarded, so send only the documented fields.

Endpoint

  • Method: POST

  • Path: /moderation/config

  • Edition: PRO

  • Controller: ModerationController@saveConfig

  • Route source: fluent-community-pro/app/Http/Routes/api.php:105

  • Controller source: fluent-community-pro/app/Http/Controllers/ModerationController.php

  • Requires the FluentCommunity community-admin permission (or a WordPress super admin).

  • Requires FluentCommunity Pro. Disabling the feature here also removes the moderation queue routes on the next request.

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 Moderation Config

POST
/moderation/config

Stores the content moderation configuration and keeps the content_moderation feature flag in step with its is_enabled value.

Controller: ModerationController@saveConfig
Route source: fluent-community-pro/app/Http/Routes/api.php:105

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Request Body

application/json
JSON
{
  
"config": {
  
  
"is_enabled": "string",
  
  
"profanity_filter": "string",
  
  
"flag_after_threshold": 0,
  
  
"first_comment_approval": "string",
  
  
"auto_flag_user_reject_threshold": 0,
  
  
"auto_flag_user_report_threshold": 0
  
}
}

Responses

Successful response

application/json
JSON
{
  
"config": {
  
  
"auto_flag_user_reject_threshold": 0,
  
  
"auto_flag_user_report_threshold": 0,
  
  
"first_comment_approval": "string",
  
  
"first_post_approval": "string",
  
  
"flag_after_threshold": 0,
  
  
"flag_all_new_posts": "string",
  
  
"flag_all_new_posts_spaces": [
  
  
  
{
  
  
  
  
"additionalProperties": "string"
  
  
  
}
  
  
],
  
  
"is_enabled": "string",
  
  
"profanity_filter": "string"
  
},
  
"message": "string"
}

Playground

Authorization
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation