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 NameData TypeDescription
commentIds (required)<JSONArray>
IDs of the comments that must be marked as spam
reason (required)<String>
Reason for marking the comment as spam

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;results&quot;:[{&quot;success&quot;:&quot;true&quot;,&quot;id&quot;:&quot;103417000000528003&quot;,&quot;errors&quot;:{&quot;errorCode&quot;:&quot;SUCCESS&quot;,&quot;httpCode&quot;:&quot;200&quot;}},{&quot;success&quot;:&quot;true&quot;,&quot;id&quot;:&quot;103417000000528006&quot;,&quot;errors&quot;:{&quot;errorCode&quot;:&quot;SUCCESS&quot;,&quot;httpCode&quot;:&quot;200&quot;}},{&quot;success&quot;:&quot;false&quot;,&quot;id&quot;:&quot;103417000000528008&quot;,&quot;errors&quot;:{&quot;errorCode&quot;:&quot;UNAUTHORIZED&quot;,&quot;httpCode&quot;:&quot;401&quot;}}]}