---
title: "Edit an organization message template"
method: PUT
path: "/message-templates/{id}"
tags: ["MessageTemplates"]
---

# Edit an organization message template

`PUT /message-templates/{id}`

## Request

- Base URL: `https://api.leadping.ai`
- URL: `https://api.leadping.ai/message-templates/{id}`
- Auth: HTTP bearer

Update a Leadping message template by ID. Change its name or message text, or enable or disable the template for use in your organization.

## Path parameters

- `id` string, required

## Request body

- MessageTemplateRequest: The editable fields of an organization message template.
  - `name` string, required
  - `body` string, required
  - `enabled` boolean

## Response `200`

The template with its updated settings.

- MessageTemplate: A reusable message draft shared by an organization.
  - `id` string
  - `name` string
  - `body` string
  - `enabled` boolean

## Other responses

- `400`: The request contains invalid values.
- `401`: Authentication credentials are missing or invalid.
- `403`: The caller lacks permission for this operation.
- `404`: The requested resource could not be found.
- `415`: The request uses an unsupported content type.
- `429`: The API rate limit for this account or client has been exceeded.

## Changes

- **2026-12-01** `bf1852acaf45`: 3 breaking, 3 info
  - removed the media type `text/json` from the request body
  - removed the media type `text/json` for the response with the status `200`
  - removed the media type `text/plain` for the response with the status `200`
  - added the non-success response with the status `400`
  - …2 more
- **2026-11-16** `95c71e3282bc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/leadping/apis/leadping-api/changes/message-templates/:id/put.md)

---

[API](https://skmtc.dev/leadping/apis/leadping-api.md) - [All operations](https://skmtc.dev/leadping/apis/leadping-api/llms.txt) - [OpenAPI document](https://skmtc.dev/leadping/apis/leadping-api/revisions/bf1852acaf45?raw)
