Mark contact as spam
POST {{baseUrl}}/api/v1/contacts/markSpam
This API marks contacts as spam.
OAuth Scope
Desk.contacts.UPDATE
Attributes
Attribute Name | Data Type | Description |
---|---|---|
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
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"results":[{"success":false,"id":"1000000030068","errors":{"errorCode":"UNPROCESSABLE_ENTITY","httpCode":"422"}},{"success":true,"id":"1000000030063","errors":null}]}