PUT v2/EviMail/Batches/{batchid}/Body
HTTP Method: PUT
Description:
This endpoint allows setting the subject and body content for an EviMail bulk email. If a value was previously set, this call will overwrite the existing body content.
Input Parameters
Body (string)
The body content of the message. Variables can be included here, which will be replaced with the corresponding values for each recipient, as defined through the
/Recipients
API.
Output Parameters
No output parameters.
The endpoint will only return an HTTP status code indicating the result of the operation.
Request Example
PUT /v2/EviMail/Batches/{batchid}/Body
Content-Type: text
Authorization: Bearer YOUR_ACCESS_TOKEN
Dear {{FirstName}},\n\nWe are excited to offer you an exclusive discount. Use code {{DiscountCode}} at checkout!
Response Example
The endpoint will return an HTTP status code:
200 OK if the request was successful and the content was set.
400 Bad Request if the input was invalid.
404 Not Found if the specified
batchid
does not exist.
Notes
The
batchid
in the URL is the unique identifier of the batch created through the initial request (v2/EviMail/Batches
).Variables such as
{{FirstName}}
and{{DiscountCode}}
in theBody
parameter will be replaced with recipient-specific values as defined in the/Recipients
API.