Mark contact as spam

POST {{baseUrl}}/api/v1/contacts/markSpam

This API marks contacts as spam.

OAuth Scope

  • Desk.contacts.UPDATE

Attributes

Attribute NameData TypeDescription
ids (required)<list>
ID(s) of the contact(s) that must be marked or unmarked as spam
isSpam (required)<boolean>
Key that marks or unmarks a single contact or multiple contacts as spam
handleExistingTickets<boolean>
Key that marks or unmarks tickets from the contact(s) as spam

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;results&quot;:[{&quot;success&quot;:false,&quot;id&quot;:&quot;1000000030068&quot;,&quot;errors&quot;:{&quot;errorCode&quot;:&quot;UNPROCESSABLE_ENTITY&quot;,&quot;httpCode&quot;:&quot;422&quot;}},{&quot;success&quot;:true,&quot;id&quot;:&quot;1000000030063&quot;,&quot;errors&quot;:null}]}