---
updatedAt: 2026-04-21T09:18:29.000Z
agentTools:
  projectIndex: https://docs.esputnik.com/llms.txt
---

# Add/update translated Email message

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

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "esputnik.com",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://esputnik.com"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "tags": [
    {
      "name": "Messages"
    }
  ],
  "paths": {
    "/api/v1/messages/email/{id}/{language}": {
      "put": {
        "tags": [
          "Messages"
        ],
        "summary": "Add/update translated Email message",
        "description": "The method is used for updating or adding language versions for the basic Email message.",
        "operationId": "updateMessage_1",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Email message id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "example": 2345678
          },
          {
            "name": "language",
            "in": "path",
            "description": "Email message language code<br/>\nIn compliance with <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO_639-1</a>",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "en"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BaseEmailMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json; charset=UTF-8": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BaseEmailMessage": {
        "required": [
          "from",
          "htmlText",
          "name",
          "subject"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Message ID.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Message name."
          },
          "languageCode": {
            "type": "string",
            "description": "Language code."
          },
          "tags": {
            "type": "array",
            "description": "List of tags.",
            "items": {
              "type": "string",
              "description": "List of tags."
            }
          },
          "subscriptionsKeys": {
            "type": "array",
            "description": "Subscription categories keys, assigned to a message.",
            "items": {
              "type": "string",
              "description": "Subscription categories keys, assigned to a message."
            }
          },
          "languages": {
            "type": "array",
            "description": "An array with the language codes for multilingual messages. Available for the GET method only.",
            "items": {
              "type": "string",
              "description": "An array with the language codes for multilingual messages. Available for the GET method only."
            }
          },
          "from": {
            "type": "string",
            "description": "<b>Required parameter</b> for a regular message (template = false or absent).<br>\nSender name and email address, e.g. \"from\": \"\\\"name\\\" &lt;info@test.com&gt;\".<br>\nIf template = true, the parameter is optional: if your organization has email senders, the first one is assigned to the template; otherwise, the template is created without a sender.",
            "example": "\"John Smith\" John.Smith@example.com"
          },
          "subject": {
            "type": "string",
            "description": "Message subject",
            "example": "Thanks for signing up"
          },
          "htmlText": {
            "type": "string",
            "description": "Message HTML code"
          },
          "rawHtml": {
            "type": "string",
            "description": "Message HTML code without styles."
          },
          "ampHtml": {
            "type": "string",
            "description": "Message AMP code"
          },
          "css": {
            "type": "string",
            "description": "Message styles"
          },
          "updatedDate": {
            "type": "string",
            "description": "Message updated date",
            "format": "date-time"
          },
          "translations": {
            "type": "array",
            "description": "The array of the language versions for the current message. Available for the GET method only.",
            "items": {
              "$ref": "#/components/schemas/EmailMessage"
            }
          },
          "template": {
            "type": "boolean",
            "description": "Set to true to create the message as a template. If false or absent, a general message is created."
          }
        }
      },
      "EmailMessage": {
        "required": [
          "from",
          "htmlText",
          "name",
          "subject"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Message ID.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Message name."
          },
          "languageCode": {
            "type": "string",
            "description": "Language code."
          },
          "tags": {
            "type": "array",
            "description": "List of tags.",
            "items": {
              "type": "string",
              "description": "List of tags."
            }
          },
          "subscriptionsKeys": {
            "type": "array",
            "description": "Subscription categories keys, assigned to a message.",
            "items": {
              "type": "string",
              "description": "Subscription categories keys, assigned to a message."
            }
          },
          "languages": {
            "type": "array",
            "description": "An array with the language codes for multilingual messages. Available for the GET method only.",
            "items": {
              "type": "string",
              "description": "An array with the language codes for multilingual messages. Available for the GET method only."
            }
          },
          "from": {
            "type": "string",
            "description": "<b>Required parameter.</b><br>\nSender name and email address, e.g. \"from\": \"\\\"name\\\" &lt;info@test.com&gt;\"",
            "example": "\"John Smith\" John.Smith@example.com"
          },
          "subject": {
            "type": "string",
            "description": "Message subject",
            "example": "Thanks for signing up"
          },
          "htmlText": {
            "type": "string",
            "description": "Message HTML code"
          },
          "rawHtml": {
            "type": "string",
            "description": "Message HTML code without styles."
          },
          "ampHtml": {
            "type": "string",
            "description": "Message AMP code"
          },
          "css": {
            "type": "string",
            "description": "Message styles"
          },
          "updatedDate": {
            "type": "string",
            "description": "Message updated date",
            "format": "date-time"
          },
          "template": {
            "type": "boolean"
          }
        },
        "description": "The array of the language versions for the current message. Available for the GET method only."
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```