---
title: "Update Template"
method: PATCH
path: "/v2/sms-templates/{sms_template_id}"
tags: ["sms-templates"]
---

# Update Template

`PATCH /v2/sms-templates/{sms_template_id}`

## Request

- Base URL: `https://api.stuut.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stuut.ai/v2/sms-templates/{sms_template_id}`
- Auth: HTTP bearer

Update an SMS Template

## Path parameters

- `sms_template_id` string, required

## Request body

- UpdateSMSTemplateRequest: Request body for updating an SMS template.
  - `name` string, nullable: The name of the SMS template.
  - `body` string, nullable: The message template body with Jinja2 variables. Plain text only.
  - `description` string, nullable: Description of when/how to use this template.
  - `is_default` boolean, nullable: Whether this is the default SMS template.

## Response `200`

Successful Response

- SMSTemplateSchema: SMS template summary for list views.
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, nullable, required
  - `id` string, required
  - `body` string, required: The message template body with Jinja2 variables. Plain text only.
  - `character_count` integer, required: Approximate character count (before variable substitution)
  - `description` string, nullable, required: Description of when/how to use this template.
  - `estimated_segment_count` integer, required: Estimated SMS segment count. 160 characters per segment for GSM-7 encoding. Note: Actual count may vary after variable substitution.
  - `is_default` boolean, required: Whether this is the default SMS template.
  - `name` string, required: The name of the SMS template.
  - `object` string, required: String representing the object's type. Objects of the same type share the same value.

## Other responses

- `422`: Validation Error

---

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