Mute Newsletter
#
Method#
/mute-newsletterPUT
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/mute-newsletter
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptThis method is responsible for muting a newsletter.
#
Attributes#
RequiredAttributes | Type | Description |
---|---|---|
id | string | Newsletter ID |
#
Request Body#
URLMethod
PUT
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/mute-newsletter
#
Bodywarning
The newsletter ID must always include the "@newsletter" suffix, as this is the standard used by WhatsApp itself.
#
Response#
200Attributes | Type | Description |
---|---|---|
value | boolean | true if successful, false in case of failure |
Example
#
405In this case, ensure that you are correctly sending the method specification, i.e., check if you sent the POST, PUT, or GET as specified at the beginning of this topic.
#
415If you receive a 415 error, make sure to add the "Content-Type" to the headers of the request for the object you are sending, mostly "application/json."