LegalStack
API

Шаблоны

Операции

Всего операций: 11. Полные схемы запросов и ответов — на страницах разделов.

Шаблоны

МетодПутьОперация
DELETE/api/v1/templates/fields/{fieldId}Удалить system field
PATCH/api/v1/templates/fields/{fieldId}Обновить system field (options.items только append)
POST/api/v1/templates/fields/{fieldId}/options/deprecateSoft-deprecate items в options (новые блоки не видят, старые рендерят label)
GET/api/v1/templates/typesСписок system types (built_in=true)
POST/api/v1/templates/typesСоздать system type
DELETE/api/v1/templates/types/{typeId}Удалить system type
GET/api/v1/templates/types/{typeId}Получить system type + fields
PATCH/api/v1/templates/types/{typeId}Обновить system type
GET/api/v1/templates/types/{typeId}/fieldsСписок system fields для type
POST/api/v1/templates/types/{typeId}/fieldsСоздать system field

Системные шаблоны

МетодПутьОперация
GET/api/v1/templates/system/documentsСистемный каталог шаблонов документов (read-only для пользователей)

На этой странице