---
title: "Update a draft"
method: PUT
path: "/templates/{id}"
tags: ["Templates"]
---

# Update a draft

`PUT /templates/{id}`

## Request

- Base URL: `https://rcs-templates-api-dot-msg2ai-server.ue.r.appspot.com/api/agent`
- URL: `https://rcs-templates-api-dot-msg2ai-server.ue.r.appspot.com/api/agent/templates/{id}`
- Auth: HTTP bearer

Revise a draft in place, re-running the same validator that gates creation.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `description` string
  - `channel` 'RCS' | 'WHATSAPP': Move the template to another channel. Requires the matching add-on brand; omit to leave it where it is.
  - `category` 'MARKETING' | 'UTILITY' | 'AUTHENTICATION'
  - `content` object: Full replacement TemplateContent (not a deep merge). Must include a non-empty smsFallback.
  - `tags` string[]
  - `knowledgeDoc` string

## Response `200`

Success.

- object

## Other responses

- `400`: Arguments failed validation.
- `401`: Missing or invalid agent key.
- `403`: Key does not hold the templates:write scope.
- `429`: Rate limited.

---

[API](https://skmtc.dev/wa-campaigns/apis/whatsapp-campaigns-agent-gateway.md) · [All operations](https://skmtc.dev/wa-campaigns/apis/whatsapp-campaigns-agent-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/wa-campaigns/apis/whatsapp-campaigns-agent-gateway/revisions/24503d56cc7b?raw)
