Skip to the content.

Report Comments API

With Report Comments api V4 you can:

List report comments

Fetch a paginated list of report comments.

Optional params:

GET /api/v4/report_comments?updated_after=2022-05-24T19:30:30.278+12:00&orderby=updated_after+asc&fields=-report_id,report_uuid
[
  {
    "id": 3,
    "uuid": "f6f61af8-cbc6-4d0f-9e56-4815c1a4b21d",
    "content": "Sapiente eos sunt. Ratione in aperiam. Sit ad at.",
    "created_at": "2022-05-24T19:30:30.278+12:00",
    "is_anonymous": false,
    "report_uuid": "15eb79c0-def4-4b69-bfa3-35fcc5c301b9",
    "user_id": 15
  },
  {
    "id": 5,
    "uuid": "794c83d7-6ede-447c-a22a-aed65f2e069c",
    "content": "Modi temporibus animi. Omnis earum enim. Nesciunt consequatur illum.",
    "created_at": "2022-05-24T19:31:00.174+12:00",
    "is_anonymous": true,
    "report_uuid": "15eb79c0-def4-4b69-bfa3-35fcc5c301b9"
  }
]

Fetch a report_comment

Get a report_comment. See the optional available fields.

GET /api/v4/report_comments/14?fields=-created_at,report_uuid
{
  "id": 5,
  "uuid": "794c83d7-6ede-447c-a22a-aed65f2e069c",
  "content": "Modi temporibus animi. Omnis earum enim. Nesciunt consequatur illum.",
  "is_anonymous": true,
  "report_id": 2,
  "report_uuid": "15eb79c0-def4-4b69-bfa3-35fcc5c301b9"
}

Create a report comment

Creates one report comment. Allowed fields:

POST /api/v4/report_comments
{
  "report_comment": {
    "uuid": "9c21c96e-4ce5-59e6-95d5-eb475fd03441",
    "content": "This report is very important. Thank you.",
    "report_id": 1234,
  }
}
201 Created
{
  id: 15,
  "uuid": "9c21c96e-4ce5-59e6-95d5-eb475fd03441",
  "content": "This report is very important. Thank you.",
  "report_id": 1234,
  "created_at": "2022-05-24T19:30:30.278+12:00",
  "is_anonymous": false,
  "user_id": 15
}

Available Report Comment fields

You can use the fields parameter in any of the Report Comment API methods. The requested method will respond with the required fields accordingly. All fields are included by default but you can opt-out from them on request.