Update Newsletter Image
#
Method#
/update-newsletter-picturePOST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/update-newsletter-picture
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptThis method is responsible for changing the image of an existing newsletter.
#
Attributes#
RequiredAttributes | Type | Description |
---|---|---|
id | string | Newsletter ID |
pictureUrl | string | Url or Base64 of the image |
#
Request Body#
URLMethod
POST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/update-newsletter-picture
#
Bodywarning
The newsletter ID must always contain the suffix "@newsletter" as this is the standard used by WhatsApp itself.
Sending Base64 Image
If you have questions about how to send a Base64 image, access the "Send Image" topic, where you will find everything you need to know about sending in this format.
#
Response#
201Attributes | 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 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."
#
Webhook ResponseLink to the response of the webhook (upon receiving)