Resolves a moderation report by setting its status, and publishes or unpublishes the reported content to match.
status accepts published, unpublished, pending, rejected, flagged or ignored. Every sibling report against the same content is updated at once, and the report count on the content is reset to zero. Where the content was being held pending approval, releasing it replays the normal creation hooks, so notifications and announcement emails are sent at this point.
Endpoint
Method:
PUTPath:
/moderation/reports/{report_id}Edition: PRO
Controller:
ModerationController@updateRoute source:
fluent-community-pro/app/Http/Routes/api.php:99Controller source:
fluent-community-pro/app/Http/Controllers/ModerationController.phpRequires a community moderator, or the admin or moderator role in the space holding the reported content.
Only
unpublishedhides the content — every other status, includingrejectedandflagged, publishes it. Choosingrejectedto reject the content does the opposite of what the word suggests.The
unpublishedoutcome can also flag the reported member account, depending on the auto-flag thresholds in the moderation config.
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.
PUT Update Moderation Report
Resolves a moderation report by setting its status, and publishes or unpublishes the reported content to match.
Controller: ModerationController@update
Route source: fluent-community-pro/app/Http/Routes/api.php:99
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Report ID extracted from the URL path.
Request Body
Responses
Successful response