Skip to main content
PUT
Update templates

Авторизации

Authorization
string
header
обязательно

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Заголовки

X-Tenant-Id
integer

Компания, в контексте которой выполняется запрос — её id из GET /v1/tenant/. Пользователь должен состоять в этой компании: чужой id доступа к данным не даёт. Без заголовка компания определяется по домену запроса.

Параметры пути

id
integer
обязательно

Тело

name
string
обязательно
Maximum string length: 255
content_type
enum<string>
обязательно
  • client - client
  • orderrequest - orderrequest
Доступные опции:
client,
orderrequest
content
string
обязательно
filter
any
created_by
integer | null
points
integer[]
Требуемый диапазон: -2147483648 <= x <= 2147483647
status
enum<string>
  • active - Обязательный
  • disabled - Необязательный
Доступные опции:
active,
disabled
order
integer | null
Требуемый диапазон: -2147483648 <= x <= 2147483647
format
enum<string>
  • 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 - Другой размер
Доступные опции:
Letter,
Tabloid,
Legal,
Statement,
Executive,
Folio,
A3,
A4,
A5,
B4,
B5,
Custom
width
string<decimal>
Pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
height
string<decimal>
Pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
margin_left
string<decimal>
Pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
margin_right
string<decimal>
Pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
margin_top
string<decimal>
Pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
margin_bottom
string<decimal>
Pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
scale
string<decimal>
Pattern: ^-?\d{0,3}(?:\.\d{0,2})?$

Ответ

200 - application/json
id
integer
обязательно
read-only
name
string
обязательно
Maximum string length: 255
content_type
enum<string>
обязательно
  • client - client
  • orderrequest - orderrequest
Доступные опции:
client,
orderrequest
created_at
string<date-time>
обязательно
read-only
updated_at
string<date-time>
обязательно
read-only
content
string
обязательно
filter
any
created_by
integer | null
points
integer[]
Требуемый диапазон: -2147483648 <= x <= 2147483647
status
enum<string>
  • active - Обязательный
  • disabled - Необязательный
Доступные опции:
active,
disabled
order
integer | null
Требуемый диапазон: -2147483648 <= x <= 2147483647
format
enum<string>
  • 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 - Другой размер
Доступные опции:
Letter,
Tabloid,
Legal,
Statement,
Executive,
Folio,
A3,
A4,
A5,
B4,
B5,
Custom
width
string<decimal>
Pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
height
string<decimal>
Pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
margin_left
string<decimal>
Pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
margin_right
string<decimal>
Pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
margin_top
string<decimal>
Pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
margin_bottom
string<decimal>
Pattern: ^-?\d{0,4}(?:\.\d{0,2})?$
scale
string<decimal>
Pattern: ^-?\d{0,3}(?:\.\d{0,2})?$