---
title: "Create a case"
method: POST
path: "/case"
tags: ["case"]
---

# Create a case

`POST /case`

## Request body

- Case
  - `id` number, required
  - `name` string, required — Name of case
  - `comment` string — Comment available for team
  - `tag` string[] — List of tag which apply to case
  - `auditedInstitution` object[] — List of audited institution
    - `id` string, objectId
    - `user` number
  - `responsibleUser` UserRef[] — List of users responsible for the case
    - `id` string, objectId, required
    - `user` number, required
  - `notifiedUser` UserRef[] — List of users which receive notifications
    - `id` string, objectId, required
    - `user` number, required
  - `features` string[] — List of features from dictionaries
  - `letterCount` number — Count of letter in case
  - `noteCount` number — Count of note in case
  - `eventCount` number — Count of event in case
  - `createdOn` string, datetime, required
  - `createdBy` string, required — User ID responsible for creating the content
  - `modifiedOn` string, datetime, required
  - `modifiedBy` string, required

## Response `201`

Expected response to a valid request

- Case
  - `id` number, required
  - `name` string, required — Name of case
  - `comment` string — Comment available for team
  - `tag` string[] — List of tag which apply to case
  - `auditedInstitution` object[] — List of audited institution
    - `id` string, objectId
    - `user` number
  - `responsibleUser` UserRef[] — List of users responsible for the case
    - `id` string, objectId, required
    - `user` number, required
  - `notifiedUser` UserRef[] — List of users which receive notifications
    - `id` string, objectId, required
    - `user` number, required
  - `features` string[] — List of features from dictionaries
  - `letterCount` number — Count of letter in case
  - `noteCount` number — Count of note in case
  - `eventCount` number — Count of event in case
  - `createdOn` string, datetime, required
  - `createdBy` string, required — User ID responsible for creating the content
  - `modifiedOn` string, datetime, required
  - `modifiedBy` string, required

## Other responses

- `default` — unexpected error

---

[API](https://skmtc.net/watchdogpolska/apis/small-eod.md) · [All operations](https://skmtc.net/watchdogpolska/apis/small-eod/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/watchdogpolska/small-eod/revisions/1c5ac40bf412/schema)
