---
title: "Создание сообщения под обращению жителя"
method: POST
path: "/calls/{call}/call_messages"
tags: ["Calls"]
---

# Создание сообщения под обращению жителя

`POST /calls/{call}/call_messages`

Calls/CallMessageController (privileges: Call => U2 для адреса обращения )

## Request body

- object
  - `data` ICallerMessage
    - `id` integer
    - `callId` integer
    - `userMessage` string
    - `userId` integer
    - `userName` string
    - `userFio` string
    - `createdAt` string
    - `sentAt` string
    - `sentTo` string

## Response `201`

Oк

- object
  - `data` ICallerMessage
    - `id` integer
    - `callId` integer
    - `userMessage` string
    - `userId` integer
    - `userName` string
    - `userFio` string
    - `createdAt` string
    - `sentAt` string
    - `sentTo` string

## Other responses

- `401` — пользователь не идентифицирован
- `403` — Недостаточно прав доступа
- `422` — нет содержимого или не хватаем входных параметров

---

[API](https://skmtc.dev/curog/apis/api.md) · [All operations](https://skmtc.dev/curog/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/curog/api/revisions/2e92f0610d70/schema)
