---
title: "Updated case"
method: PATCH
path: "/case/{caseId}"
tags: ["case"]
---

# Updated case

`PATCH /case/{caseId}`

## Path parameters

- `caseId` number, required

## 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
  - `matrix` object[] — Structure to collect statistical information in relation to Dictionary
    - `id` number
    - `dictionary` string, dictionaryId
    - `values` string[]
  - `letterCount` number — Count of letter in case
  - `noteCount` number — Count of note in case
  - `createdOn` string, datetime, required
  - `createdBy` string, required — User ID responsible for creating the content
  - `modifiedOn` string, datetime, required
  - `modifiedBy` string, required

## Response `200`

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
  - `matrix` object[] — Structure to collect statistical information in relation to Dictionary
    - `id` number
    - `dictionary` string, dictionaryId
    - `values` string[]
  - `letterCount` number — Count of letter in case
  - `noteCount` number — Count of note 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

## Changes

> 10 revisions in range; 1 not diffed.

- **2019-10-10** `f16566c7c7ef` — 2 breaking, 8 info
  - the request property `notifiedUser/items/user` became required
  - the request property `responsibleUser/items/user` became required
  - the response property `notifiedUser/items/id` became required for the status `200`
  - the response property `notifiedUser/items/user` became required for the status `200`
  - …6 more

[Change history](https://skmtc.dev/watchdogpolska/apis/small-eod/changes/case/:caseId/patch.md)

---

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