---
title: "POST /v2/documents/templates/"
method: POST
path: "/v2/documents/templates/"
tags: ["v2"]
---

# POST /v2/documents/templates/

`POST /v2/documents/templates/`

## Request body

- TemplateV2Detail
  - `id` integer, required
  - `name` string, required
  - `content_type` 'client' | 'orderrequest', required — * `client` - client * `orderrequest` - orderrequest
  - `filter` unknown
  - `created_by` integer, nullable
  - `points` integer[]
  - `status` 'active' | 'disabled' — * `active` - active * `disabled` - disabled
  - `order` integer, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `format` 'Letter' | 'Tabloid' | 'Legal' | 'Statement' | 'Executive' | 'Folio' | 'A3' | 'A4' | 'A5' | 'B4' | 'B5' | 'Custom' — * `Letter` - Letter (21,6 x 27,9 см) * `Tabloid` - Tabloid (27,9 x 43,2 см) * `Legal` - Legal (21,6 x 35,6 см) * `Statement` - Statement (14,0 x 21,6 см) * `Executive` - Executive (18,4 x 26,7 см) * `Folio` - Folio (21,6 x 33,0 см) * `A3` - A3 (29,7 x 42,0 см) * `A4` - A4 (21,0 x 29,7 см) * `A5` - A5 (14,8 x 21,0 см) * `B4` - B4 (25,0 x 35,3 см) * `B5` - B5 (17,6 x 25,0 см) * `Custom` - Другой размер
  - `width` string, decimal
  - `height` string, decimal
  - `margin_left` string, decimal
  - `margin_right` string, decimal
  - `margin_top` string, decimal
  - `margin_bottom` string, decimal
  - `scale` string, decimal
  - `content` string, required

## Response `201`

- TemplateV2Detail
  - `id` integer, required
  - `name` string, required
  - `content_type` 'client' | 'orderrequest', required — * `client` - client * `orderrequest` - orderrequest
  - `filter` unknown
  - `created_by` integer, nullable
  - `points` integer[]
  - `status` 'active' | 'disabled' — * `active` - active * `disabled` - disabled
  - `order` integer, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `format` 'Letter' | 'Tabloid' | 'Legal' | 'Statement' | 'Executive' | 'Folio' | 'A3' | 'A4' | 'A5' | 'B4' | 'B5' | 'Custom' — * `Letter` - Letter (21,6 x 27,9 см) * `Tabloid` - Tabloid (27,9 x 43,2 см) * `Legal` - Legal (21,6 x 35,6 см) * `Statement` - Statement (14,0 x 21,6 см) * `Executive` - Executive (18,4 x 26,7 см) * `Folio` - Folio (21,6 x 33,0 см) * `A3` - A3 (29,7 x 42,0 см) * `A4` - A4 (21,0 x 29,7 см) * `A5` - A5 (14,8 x 21,0 см) * `B4` - B4 (25,0 x 35,3 см) * `B5` - B5 (17,6 x 25,0 см) * `Custom` - Другой размер
  - `width` string, decimal
  - `height` string, decimal
  - `margin_left` string, decimal
  - `margin_right` string, decimal
  - `margin_top` string, decimal
  - `margin_bottom` string, decimal
  - `scale` string, decimal
  - `content` string, required

---

[API](https://skmtc.net/yume-cloud/apis/yume-api.md) · [All operations](https://skmtc.net/yume-cloud/apis/yume-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yume-cloud/yume-api/versions/90700f5abfcc/schema)
