Use this endpoint to block an Omnichannel on a specific channel. Permission required: block-livechat-contact
The authToken of the authenticated user.
The userId of the authenticated user.
{
"visitor": {
"visitorId": "68f0d2c201e202fefed83672",
"source": {
"type": "widget"
}
}
}The visitor object contains the details of the contact that you want to block.
Enter the visitor ID of the contact that you want to block. To get the visitor ID, you can use the Search Omnichannel Contacts endpoint.
The source object contains the channels from which you want to block the contact. To get the room types, you can use the View Omnichannel Room Sources endpoint.
Enter the type of channel from which you want to block the contact.
OK
{
"success": true
}Bad Request
{
"success": false,
"error": "must have required property 'visitor' [invalid-params]",
"errorType": "invalid-params"
}{
"success": false,
"error": "error-contact-not-found"
}Unauthorized
{
"status": "error",
"message": "You must be logged in to do this."
}