Skip to end of banner
Go to start of banner

PUT v2/EviMail/Batches/{batchid}/Body

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

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: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN

{
    "Body": "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 the Body parameter will be replaced with recipient-specific values as defined in the /Recipients API.

  • No labels