Skip to main content

Removing labels from a chat.

Method#

/chats/{phone}/tags/{tag}/remove#

PUT https://api.z-api.io/instances/{{instanceId}}/token/{{instanceToken}}/chats/{phone}/tags/{tag}/remove

Header#

KeyValue
Client-TokenACCOUNT SECURITY TOKEN

Concept#

Through this method, it is possible to remove the labels from a chat in WhatsApp Business.

Importante

This method is only available for devices connected to the Multi-Devices version of WhatsApp.

Response#

200#

AttributesTypeDescription
valuebooleantrue if successful, and false if there is a failure

Exemplo

{
"value": true
}

405#

In this case certify that you are sending the correct specification of the method. This means, verify if you sent a GET or POST as specified at the beginning of this topic.

415#

In case you receive 415 error, make sure to add the “Content-Type” of the object you are sending in the request headers, mostly “application/json”