Skip to main content
POST
/
api
/
v1
/
hubs
/
{hub_id}
/
reports
File Report
curl --request POST \
  --url https://api.member.dev/api/v1/hubs/{hub_id}/reports \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "attributes": {
      "reportable_id": "<string>",
      "reportable_type": "<string>",
      "notes": "<string>",
      "reason_id": "<string>"
    },
    "type": "moderation_reports"
  }
}
'
{
  "data": {
    "attributes": {
      "created_at": "2023-11-07T05:31:56Z",
      "notes": "<string>",
      "reason_id": "<string>",
      "reportable_id": "<string>",
      "reportable_type": "<string>",
      "resolution": "<string>",
      "resolved_at": "2023-11-07T05:31:56Z",
      "status": "<string>"
    },
    "id": "<string>",
    "type": "moderation_reports"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

hub_id
string
required

Body

application/vnd.api+json
data
FileReportData · object
required

Response

Successful Response

data
ModerationReportResource · object
required