> ## Documentation Index
> Fetch the complete documentation index at: https://docs.conversales.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Template

> Update an existing template

## Authentication

<ParamField header="X-API-Key" type="string" required>
  Your API key for authentication
</ParamField>

## Query Parameters

<ParamField query="templateId" type="string" required>
  Template ID to update
</ParamField>

## Request Body

Same structure as Create Template

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT "https://backend.conversales.in/api/v1/updateTemplate?templateId=template_123456" \
    -H "X-API-Key: 3kJ9mP2nQ8rT5vW7xY1zA4bC6dE8fG0hI" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "welcome_message_updated",
      "category": "MARKETING",
      "language": "en",
      "components": [
        {
          "type": "BODY",
          "text": "Welcome {{1}}! We are excited to have you."
        }
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "statusCode": 200,
    "message": "Template updated successfully",
    "data": {
      "templateId": "template_123456",
      "status": "PENDING"
    }
  }
  ```
</ResponseExample>

<Warning>Updated templates must be re-approved by WhatsApp before use.</Warning>
