---
title: "Update a text template by ID"
method: PATCH
path: "/text_templates/{text_template_id}"
tags: ["Text templates"]
---

# Update a text template by ID

`PATCH /text_templates/{text_template_id}`

## Request

- Base URL: `https://api.sandbox.monite.com/v1`
- URL: `https://api.sandbox.monite.com/v1/text_templates/{text_template_id}`
- Auth: HTTP bearer

Update custom content by ID

## Path parameters

- `text_template_id` string, required

## Headers

- `x-monite-version` string, required
- `x-monite-entity-id` string, required

## Request body

- object
  - `name` string
  - `template` string

## Response `200`

Successful Response

- TextTemplateResponse
  - `id` string, uuid, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `document_type` 'quote' | 'invoice' | 'credit_note' | 'discount_reminder' | 'final_reminder' | 'payables_purchase_order' | 'overdue_reminder', required
  - `is_default` boolean, required
  - `name` string, required
  - `template` string, required
  - `type` 'email_header' | 'email_body' | 'memo', required

## Other responses

- `422`: Validation Error
- `500`: Internal Server Error

---

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