---
title: "Update email template"
method: PUT
path: "/email/1/templates/{templateId}"
tags: ["channels", "email", "email-templates"]
---

# Update email template

`PUT /email/1/templates/{templateId}`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/email/1/templates/{templateId}`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic

Updates an existing email template with new data.

## Path parameters

- `templateId` integer, required

## Request body `multipart/form-data`

- 39bb6975d36d214ea076d974c69ec0b82edda805f4c6bf36a3f6f7d154c98fa0CreateEmailTemplateRequest
  - `name` string: Name of the email template.
  - `from` string: Email address with optional sender name.
  - `replyTo` string, email: Email address to which recipients of the email can reply.
  - `subject` string: Subject of the email template.
  - `preheader` string: Preheader of the email template.
  - `html` string, required: HTML content of the email template.
  - `attachments` string: JSON string of attachments to be sent with the email template.
  - `landingPage` string: The identifier of an opt out landing late to be used and displayed when an end user clicks the unsubscribe link. Create a landing page in your Infobip account and use the ID number. For example, 1_23456. If not present, the default opt out landing page is used.

## Response `200`

OK

- 39bb6975d36d214ea076d974c69ec0b82edda805f4c6bf36a3f6f7d154c98fa0EmailTemplate
  - `id` integer, required: Unique identifier of the email template.
  - `name` string: Name of the email template.
  - `from` string: Email address with optional sender name.
  - `replyTo` string: Email address to which recipients of the email can reply.
  - `subject` string: Subject of the email template.
  - `preheader` string: Preheader of the email template.
  - `html` string, required: HTML content of the email template.
  - `isHtmlEditable` boolean, required: Flag indicating if the HTML content is editable.
  - `attachments` 39bb6975d36d214ea076d974c69ec0b82edda805f4c6bf36a3f6f7d154c98fa0Attachment[]: List of attachments.
    - `id` string, required: Id of the attachment.
    - `contentType` string: Content type of the attachment.
    - `fileName` string: Name of the attachment.
    - `size` integer: Size of the attachment in bytes.
    - `url` string: URL of the attachment.
  - `landingPageId` string: Unique identifier of the landing page.
  - `imagePreviewUrl` string: URL of the image preview.
  - `createdAt` string, date-time: Date and time when the email template was created. Has the following format: `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.
  - `updatedAt` string, date-time: Date and time when the email template was last updated. Has the following format: `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
