---
title: "Update message template"
method: PATCH
path: "/message_templates/{message_template_id}"
tags: ["Message Templates"]
---

# Update message template

`PATCH /message_templates/{message_template_id}`

Update a message template.

Required scope: `message_templates:write`

## Path parameters

- `message_template_id` string, required

## Response `200`

A message template

- MessageTemplateResponse
  - `_links` object, required
    - `self` string — Link to resource
    - `related` object
      - `owner` string, nullable — Link to resource's owner
      - `parent_folder` string, nullable — Link to the parent folder that contains the message template
  - `id` string, required — Unique identifier of the message template
  - `name` string, required — Name of the message template
  - `subject` string, nullable, required — Subject of the message template
  - `body` string, required — Body of the message template
  - `attachments` Attachment[], required — List of files attached to the response
    - `id` string, required — The unique identifier of the attachment.
    - `filename` string, required — Name of the attached file
    - `url` string, required — URL to download the attached file
    - `content_type` string, required — Content type of the attached file in [MIME format](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types). Note that some attachments types may not be supported.
    - `size` integer, required — Size (in byte) of the attached file
    - `metadata` object, required — Attachment metadata
      - `is_inline` boolean — Whether or not the attachment is part of the message body
      - `cid` string — Unique identifier used to link an attachment to where it is used in the message body
  - `is_available_for_all_inboxes` boolean, required — Whether or not the template is available in all inboxes.
  - `inbox_ids` string[], nullable, required — List of inboxes the template is available in. Null if there are no restrictions.

---

[API](https://skmtc.dev/frontapp/apis/core-api.md) · [All operations](https://skmtc.dev/frontapp/apis/core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/frontapp/core-api/revisions/76d1eaa2d0eb/schema)
