> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.conversive.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.conversive.ai/_mcp/server.

# Edit a Template

`PUT https://api.beconversive.com/api/v2/templates/{template_id}`

Updates a template. Send only the fields you want to change; fields you do not send are left unchanged. A template's channel cannot be changed.

```bash
curl -X PUT https://api.beconversive.com/api/v2/templates/102031 \
  -H "apiKey: <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"text": "Hi, welcome back!"}'
```

**200 Updated**

```json
{
  "message": "SMS template has been updated successfully"
}
```

## Authentication

| Name     | Type   | Required | Description                        |
| -------- | ------ | -------- | ---------------------------------- |
| `apiKey` | string | Required | API key authentication via header. |

## Path parameters

| Name          | Type    | Required | Description                   |
| ------------- | ------- | -------- | ----------------------------- |
| `template_id` | integer | Required | ID of the template to update. |

## Request body

Any body parameter from Create a template, except `channel`. When changing `integration`, `record_type` can be omitted if the template already has one.

## Response

| Name      | Type   | Description           |
| --------- | ------ | --------------------- |
| `message` | string | Confirmation message. |

## Errors

| Status           | Error                              | Description                                                              |
| ---------------- | ---------------------------------- | ------------------------------------------------------------------------ |
| 400 Bad Request  | `MISSING-RECORD-TYPE`              | `integration` was sent without `record_type`, and the template has none. |
| 400 Bad Request  | `BAD-TEMPLATE-NAME`                | The name contains characters that are not allowed.                       |
| 401 Unauthorized | `NO-API-KEY` / `FORBIDDEN-API-KEY` | The API key is missing or not valid.                                     |
| 403 Forbidden    | —                                  | More than 25 requests in a minute. Wait a minute and retry.              |
| 404 Not Found    | `TEMPLATE-NOT-FOUND`               | No template with this ID exists in the account.                          |