---
title: "Сохранить шаблон быстрого ответа"
method: POST
path: "/api/v1/crm/inbox/templates"
tags: ["CRM inbox"]
---

# Сохранить шаблон быстрого ответа

`POST /api/v1/crm/inbox/templates`

## Request

- Base URL: `https://erp.akeda.ru`
- URL: `https://erp.akeda.ru/api/v1/crm/inbox/templates`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://erp.akeda.ru/oauth2/authorize`, token URL `https://erp.akeda.ru/oauth2/token`, scopes: `akeda:delegate`)

Шаблон с тем же названием перезаписывается.

## Headers

- `X-Tenant` string, required

## Request body

- CRMInboxTemplateInput
  - `name` string, required
  - `body` string, required

## Response `201`

Сохранённый шаблон

- CRMInboxTemplate
  - `id` string, uuid, required
  - `name` string, required
  - `body` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Некорректный запрос или нарушение бизнес-правила
- `401`: Сессия, ключ или кабинет не подтверждены
- `403`: Текущая роль не имеет требуемого права

---

[API](https://skmtc.dev/akeda/apis/akeda-erp-client-api.md) · [All operations](https://skmtc.dev/akeda/apis/akeda-erp-client-api/llms.txt) · [OpenAPI document](https://skmtc.dev/akeda/apis/akeda-erp-client-api/revisions/3c60ded179f2?raw)
