Skip to main content
PATCH
/
reports
/
{reportId}
update
curl --request PATCH \
  --url http://localhost:8000/v1/reports/{reportId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "isResolved": true
}
'
{
  "data": {
    "updatedReport": {
      "__v": 0,
      "_id": "670e386a648069ca43164df6",
      "createdAt": "2024-10-15T09:39:54.100Z",
      "isResolved": true,
      "reason": "Bad review",
      "reporter": "6708d54f9c193b2aeae09b80",
      "review": "670c3a4ede2e2e9ee7d34d0f",
      "updatedAt": "2024-10-15T09:53:11.732Z"
    }
  },
  "error": null
}

Path Parameters

reportId
string
required
Example:

"670e3a38c010adbfe43f5271"

Body

application/json
isResolved
boolean
Example:

true

Response

update - success

data
object
error
unknown