Skip to main content
PATCH
/
:projectId
/
api
/
v7
/
spaces
/
:spaceId
/
chat
/
reports
/
:reportId
Handle Message Report
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/chat/reports/:reportId \
  --header 'Content-Type: application/json' \
  --data '
{
  "actions": [
    "<string>"
  ],
  "messageId": "<string>",
  "summary": "<string>",
  "userId": "<string>",
  "reason": "<string>"
}
'
Resolves a filed report against a chat message in a space’s integrated conversation. Requires the caller to be a moderator or admin of that space.

Path Parameters

spaceId
string
required
UUID of the space.
reportId
string
required
UUID of the chat message report to resolve.

Body Parameters

actions
string[]
required
One or more actions to take. Must contain at least one value. Available actions:
  • "remove-message" — marks the message as removed via moderation (requires messageId)
  • "ban-user" — bans the target user from the space (requires userId and reason)
  • "dismiss" — dismisses the report without action (cannot be combined with other actions)
messageId
string
UUID of the message to remove. Required when remove-message is included in actions.
summary
string
Optional summary of the action taken. Stored as actionTaken on the report record.
userId
string
UUID of the user to ban. Required when ban-user is included in actions.
reason
string
Reason for the ban. Required when ban-user is included in actions.

Response

Returns 200 OK:
{ "message": "Report handled successfully.", "code": "report/handled" }

Error Responses

{ "error": "Report not found.", "code": "report/not-found" }
{ "error": "Report does not belong to this space.", "code": "report/not-found-in-space" }
{ "error": "Message not found.", "code": "chat/message-not-found" }
{ "error": "User not found.", "code": "report/user-not-found" }
{ "error": "User is not a member of this space.", "code": "space/member-not-found" }
{ "error": "Cannot combine 'dismiss' with other actions.", "code": "report/invalid-actions" }