v1

latestOpenAPI 3.0.12026-07-249297145.2 KB
Messages

Add/update translated Email message

The method is used for updating or adding language versions for the basic Email message.

put/api/v1/messages/email/{id}/{language}

Path parameters

idinteger required

Email message id

languagestring required

Email message language code<br/> In compliance with <a href="https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes">ISO_639-1</a>

Request body

idinteger

Message ID.

namestring required

Message name.

languageCodestring

Language code.

tagsstring[]

List of tags.

subscriptionsKeysstring[]

Subscription categories keys, assigned to a message.

languagesstring[]

An array with the language codes for multilingual messages. Available for the GET method only.

fromstring required

<b>Required parameter.</b><br> Sender name and email address, e.g. "from": ""name" <info@test.com>"

subjectstring required

Message subject

htmlTextstring required

Message HTML code

rawHtmlstring

Message HTML code without styles.

ampHtmlstring

Message AMP code

cssstring

Message styles

updatedDatestring date-time

Message updated date

templateboolean

Set to true to create the message as a template. If false or absent, a general message is created.

Example request

{
  "from": "\"John Smith\" John.Smith@example.com",
  "subject": "Thanks for signing up",
  "translations": [
    {
      "from": "\"John Smith\" John.Smith@example.com",
      "subject": "Thanks for signing up"
    }
  ]
}