Validate reported resources

POST /v1/reportedResources~bulkValidate

Validate reported resources

application/json

Body Required

  • status string Required

    The status that the reported resource will be set to

    Values are Accepted or Declined.

  • reportedResourceIds array[string] Required

    The ids of the reported resources to validate

Responses

  • 200 application/json

    Reported resources validated successfully

    Hide response attribute Show response attribute object
    • updatedReportedResources array[object] Required

      The updated reported resources.

      Hide updatedReportedResources attributes Show updatedReportedResources attributes object
      • id string Required

        The id of the reported resource.

      • ownerId string Required

        The ownerId of the reported resource.

      • ownerType string Required

        The type of the owner of the reported resource.

        Values are ThreadMessage or Topic.

      • status string Required

        The status of the reported resource.

        Values are PendingReview, Declined, or Accepted.

      • author object Required

        The author of the reported resource.

        Hide author attributes Show author attributes object
        • firstName string Required

          The firstName of the author.

        • lastName string Required

          The lastName of the author.

        • profilePicture string | null Required

          The profile picture of the author.

        • spotMemberId string Required

          The spotMemberId of the author.

      • lastReportId string | null Required

        The id of the last report.

      • createdAt integer Required

        Timestamp in ms of creation date

  • 400

    Malformed payload

POST /v1/reportedResources~bulkValidate
curl \
 --request POST 'https://openapi.meltingspot.io/v1/reportedResources~bulkValidate' \
 --header "Content-Type: application/json" \
 --data '{"status":"Accepted","reportedResourceIds":["string"]}'
Request examples
{
  "status": "Accepted",
  "reportedResourceIds": [
    "string"
  ]
}
Response examples (200)
{
  "updatedReportedResources": [
    {
      "id": "string",
      "ownerId": "string",
      "ownerType": "ThreadMessage",
      "status": "PendingReview",
      "author": {
        "firstName": "string",
        "lastName": "string",
        "profilePicture": "string",
        "spotMemberId": "string"
      },
      "lastReportId": "string",
      "createdAt": 42
    }
  ]
}