Report multiple comments as spam
POST {{baseUrl}}/api/v1/community/markAllCommentsAsSpam
This API marks multiple comments on a forum topic as spam.
OAuth Scope
Desk.community.UPDATE
Attributes
Attribute Name | Data Type | Description |
---|---|---|
commentIds (required) | <JSONArray> | IDs of the comments that must be marked as spam |
reason (required) | <String> | Reason for marking the comment as spam |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"results":[{"success":"true","id":"103417000000528003","errors":{"errorCode":"SUCCESS","httpCode":"200"}},{"success":"true","id":"103417000000528006","errors":{"errorCode":"SUCCESS","httpCode":"200"}},{"success":"false","id":"103417000000528008","errors":{"errorCode":"UNAUTHORIZED","httpCode":"401"}}]}