---
title: "Update message template"
method: PUT
path: "/messaging/templates/{template_id}"
tags: ["Message Reply Templates"]
---

# Update message template

`PUT /messaging/templates/{template_id}`

This endpoint allows updating an existing message template by its ID.

## Path parameters

- `template_id` number, required

## Request body

- MessageTemplateUpdateRequest
  - `title` string — The new title of the template
  - `icon` string — The new icon linked to the template
  - `content` string — The new template content as a __stringified JSON__ object with `"_version": "0.1"` inside

## Response `200`

The message template created

- MessageReplyTemplate
  - `id` string
  - `title` string — The title of the message template.
  - `content` 'client_full_name' | 'client_first_name' | 'business_name' | 'my_first_name' | 'rb_link' | 'address' | 'website_url' | 'phone_number' — The content of the message template should be a __stringified JSON__ object. This includes both the message content (`"text"`) and the pair `"_version": "0.1"`. The `"text"` can contain placeholders (values from the enum above within double curly braces `{{}}`) that will be replaced with the actual values when the message is sent.
  - `icon` string, nullable — The icon associated with the message template.
  - `org_id` integer — The organization ID that the message template belongs to.
  - `created_at` string, date-time — The date and time when the message template was created, in ISO 8601 format.
  - `updated_at` string, date-time, nullable — The date and time when the message template was last updated, in ISO 8601 format.
  - `usage_count` integer — The number of times the message template has been used.

## Other responses

- `401` — You are not authenticated
- `403` — You are not allowed to perform this action
- `404` — Resource does not exist

---

[API](https://skmtc.net/partoo/apis/partoo-rest-api.md) · [All operations](https://skmtc.net/partoo/apis/partoo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/partoo/partoo-rest-api/revisions/3652d8b1a8b3/schema)
