Delete Reported Messages of a User

Delete all the reports of messages that belongs to user.

It requires the manage-moderation-actions permission.

Headers

Body Parameter

Example Payload

{
    "userId":"5fRTXMt7DMJbpPJfh"
}

Example Call

curl --location 'https://writing-demo.dev.rocket.chat/api/v1/moderation.user.deleteReportedMessages' \
--header 'x-auth-token: aEO8Hw3zorBFQtAEYsNPnr67Li9-lY5kX1foen8UiiS' \
--header 'x-user-id: rbAXPnMktTFbNpwtJ' \
--data '{
    "userId":"rbAXPnMktTFbNpwtJ"
}'

Example Result

Success

{
    "success": true
}

Error

Any of the following errors can occur on the endpoint.

  • Authorization: Requires an authentication token for the request to be made.

  • No Permission: Occurs when the authenticated user doesn't have the view-moderation-console permission.

{
    "status": "error",
    "message": "You must be logged in to do this."
}

Change Log

Last updated

Rocket.Chat versions receive support for six months after release.