Validate a reported resource

POST /v1/reportedResources/{reportedResourceId}/validate

Validate a reported resource

Path parameters

  • reportedResourceId string Required

    The id of the reported resource

application/json

Body Required

  • status string Required

    The status that the reported resource will be set to

    Values are Accepted or Declined.

Responses

  • 200 application/json

    Reported resource validated successfully

    Hide response attributes Show response 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

  • 404

    Reported resource not found

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