---
title: "Update a single DocumentTemplate"
method: PATCH
path: "/document_templates/{id}.json"
tags: ["Document Templates"]
---

# Update a single DocumentTemplate

`PATCH /document_templates/{id}.json`

Outlines the parameters and data fields used when updating a single DocumentTemplate

## Path parameters

- `id` integer, required

## Query parameters

- `fields` string

## Headers

- `IF-MATCH` string
- `X-API-VERSION` string

## Request body

- object
  - `data` object, required
    - `document_category` object
      - `id` integer — The unique identifier for a single DocumentCategory associated with the DocumentTemplate. The keyword `null` is not valid for this field.
    - `file` string — A file that contains the DocumentTemplate. The file can be uploaded through a form as application/x-www-form-urlencoded or multipart/form-data request. Alternatively, the file can be converted to a BASE64-encoded string and serialized to JSON.
    - `filename` string — The name of the file. The field is required when the file is BASE64-encoded string.

## Response `200`

Ok

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `412` — Precondition Failed
- `422` — Unprocessable Entity
- `429` — Too Many Requests

---

[API](https://skmtc.net/clio/apis/clio-api-documentation.md) · [All operations](https://skmtc.net/clio/apis/clio-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clio/clio-api-documentation/versions/94a82114ec3b/schema)
