> For the complete documentation index, see [llms.txt](https://docs.cuoral.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cuoral.com/api-reference/engagement/whatsapp/update-whatsapp-template.md).

# Update whatsapp template

## Update whatsapp template

<mark style="color:green;">`POST`</mark> /external/v1/whatsapp/templates/{template\_sid}

Update a WhatsApp template by SID.

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |
| x-api-key    | `<api key>`        |

**Body**

```json
{
  "template_name": "string",
  "body": "string",
  "language": "string",
  "category": "string",
  "variables": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  },
  "content_types": {
    "additionalProp1": {}
  }
}
```

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "template_sid": "string",
  "template_name": "string",
  "language": "string",
  "variables": {
    "additionalProp1": {}
  },
  "content_types": {
    "additionalProp1": {}
  },
  "status": {
    "additionalProp1": {}
  }
}
```

{% endtab %}

{% tab title="422" %}

```json
{
  "detail": [
    {
      "loc": [
        "string",
        0
      ],
      "msg": "string",
      "type": "string",
      "input": "string",
      "ctx": {}
    }
  ]
}
```

{% endtab %}
{% endtabs %}
