---
search:
  tags:
    - Document templates
    - POST
seo:
  description: >-
    Create a document template. Reference for the POST
    /api/v1/document-templates endpoint in the Taylorz CRM API.
sidebar:
  label: Create a document template
  badge: POST
title: Create a document template
type: openapi-operation
---
`POST /api/v1/document-templates`

**Request body** (`application/json`, required)

- `layout` (object, required)
- `name` (string, required)
- `objectId` (string, required)
- `version` (integer)

Request body example:

```json
{
  "layout": {
    "fields": [
      {
        "key": "string",
        "label": "string"
      }
    ],
    "footer": "",
    "pageSize": "A4",
    "title": "string"
  },
  "name": "string",
  "objectId": "string",
  "version": 1
}
```

**Responses**

- `201` — The template was created
- `400` — The request body, query or parameters were refused
- `401` — The access token is missing, invalid or revoked
- `403` — The tenant's module is off, or the token's scope or the member's role does not permit the action
- `404` — No such record, or none the caller may read
- `409` — The operation conflicts with the current state
- `413` — The request exceeds the route's body limit
- `500` — An unexpected failure

Response example, 201:

```json
{
  "id": "string"
}
```
