---
title: "Create a new DocumentTemplate"
method: POST
path: "/document_templates.json"
tags: ["Document Templates"]
---

# Create a new DocumentTemplate

`POST /document_templates.json`

Outlines the parameters and data fields used when creating a new DocumentTemplate

## Query parameters

- `fields` string

## Headers

- `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, required — 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 `201`

Created

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `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/revisions/73791ddd1207/schema)
