Trash unmoderated comments

POST {{baseUrl}}/api/v1/communityComments/moveToTrash

This API trashes comments that are yet to be approved for publishing on a forum topic.

OAuth Scope

  • Desk.community.UPDATE

Attributes

Attribute NameData TypeDescription
commentIds (required)<JSONArray>
Array of comment ids

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;null&quot;},{&quot;success&quot;:&quot;true&quot;,&quot;id&quot;:&quot;103417000000528006&quot;,&quot;errors&quot;:&quot;null&quot;},{&quot;success&quot;:&quot;false&quot;,&quot;id&quot;:&quot;103417000000528008&quot;,&quot;errors&quot;:{&quot;errorCode&quot;:&quot;FORBIDDEN&quot;,&quot;httpCode&quot;:&quot;403&quot;}}]}