Skip to content

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: PUT

  • Path: /moderation/reports/{report_id}

  • Edition: PRO

  • Controller: ModerationController@update

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

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

  • Requires a community moderator, or the admin or moderator role in the space holding the reported content.

  • Only unpublished hides the content — every other status, including rejected and flagged, publishes it. Choosing rejected to reject the content does the opposite of what the word suggests.

  • The unpublished outcome 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

PUT
/moderation/reports/{report_id}

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

ApplicationPasswords

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

Type
API Key (header: Authorization)

Parameters

Path Parameters

report_id*

Report ID extracted from the URL path.

Type
integer
Required

Request Body

application/json
JSON
{
  
"status": "string"
}

Responses

Successful response

application/json
JSON
{
  
"content": {
  
  
"comments_count": 0,
  
  
"content_type": "string",
  
  
"created_at": "string",
  
  
"expired_at": "string",
  
  
"featured_image": "string",
  
  
"id": 0,
  
  
"is_sticky": 0,
  
  
"message": "string",
  
  
"message_rendered": "string",
  
  
"meta": {
  
  
  
"auto_flagged": "string",
  
  
  
"flagged_reason": "string",
  
  
  
"media_preview": "string",
  
  
  
"prevent_published": "string",
  
  
  
"reports_count": 0
  
  
},
  
  
"parent_id": "string",
  
  
"permalink": "string",
  
  
"priority": 0,
  
  
"privacy": "string",
  
  
"reactions_count": 0,
  
  
"scheduled_at": "string",
  
  
"slug": "string",
  
  
"space": {
  
  
  
"cover_photo": "string",
  
  
  
"created_at": "string",
  
  
  
"created_by": "string",
  
  
  
"description": "string",
  
  
  
"id": 0,
  
  
  
"logo": "string",
  
  
  
"parent_id": "string",
  
  
  
"privacy": "string",
  
  
  
"serial": "string",
  
  
  
"settings": {
  
  
  
  
"can_request_join": "string",
  
  
  
  
"custom_lock_screen": "string",
  
  
  
  
"default_comment_sort_by": "string",
  
  
  
  
"default_post_sort_by": "string",
  
  
  
  
"disable_layout_style": "string",
  
  
  
  
"disable_post_sort_by": "string",
  
  
  
  
"document_access": "string",
  
  
  
  
"document_library": "string",
  
  
  
  
"document_upload": "string",
  
  
  
  
"emoji": "string",
  
  
  
  
"hide_members_count": "string",
  
  
  
  
"layout_style": "string",
  
  
  
  
"links": [
  
  
  
  
  
{
  
  
  
  
  
  
"slug": "string",
  
  
  
  
  
  
"title": "string"
  
  
  
  
  
}
  
  
  
  
],
  
  
  
  
"media_access": "string",
  
  
  
  
"media_gallery": "string",
  
  
  
  
"members_page_status": "string",
  
  
  
  
"og_image": "string",
  
  
  
  
"onboard_redirect_url": "string",
  
  
  
  
"restricted_post_only": "string",
  
  
  
  
"shape_svg": "string",
  
  
  
  
"show_paywalls": "string",
  
  
  
  
"show_sidebar": "string",
  
  
  
  
"topic_required": "string"
  
  
  
},
  
  
  
"slug": "string",
  
  
  
"status": "string",
  
  
  
"title": "string",
  
  
  
"type": "string",
  
  
  
"updated_at": "string"
  
  
},
  
  
"space_id": "string",
  
  
"status": "string",
  
  
"title": "string",
  
  
"type": "string",
  
  
"updated_at": "string",
  
  
"user_id": "string"
  
},
  
"message": "string",
  
"report": {
  
  
"content_type": "string",
  
  
"created_at": "string",
  
  
"explanation": "string",
  
  
"id": 0,
  
  
"meta": {
  
  
  
"updated_by": 0
  
  
},
  
  
"parent_id": "string",
  
  
"post_id": "string",
  
  
"reason": "string",
  
  
"reports_count": "string",
  
  
"status": "string",
  
  
"type": "string",
  
  
"updated_at": "string",
  
  
"user_id": "string"
  
}
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation