---
title: "Create or update one or multiple entities."
method: POST
path: "/cases/push"
tags: ["Case Controller"]
---

# Create or update one or multiple entities.

`POST /cases/push`

A uuid will be generated for any entity that doesn't have one yet. Posting entities without uuid multiple times will also create them multiple times.

## Response `207`

Array of responses, matching the posted array of entities. Provides an HTML status code for every entity and an optional body (e.g. a string with an error message).

- PostResponse[]
  - `body` object
  - `statusCode` integer

## Other responses

- `default` — When the request body has one or no entry. The status code of the response entry matches the response code and may have an optional body (e.g. a string with an error message).

## Changes

- **2024-06-05** `8fcd6fbef5e6` — 32 breaking, 159 warning
  - removed the enum value `ASYLUM_SEEKERS_SHELTER` of the request property `items/epiData/activitiesAsCase/items/typeOfPlace`
  - removed the enum value `ASYLUM_SEEKERS_SHELTER` of the request property `items/epiData/exposures/items/typeOfPlace`
  - removed the enum value `BIRDS` of the request property `items/epiData/exposures/items/typeOfAnimal`
  - removed the enum value `BLOOD_DONATION` of the request property `items/epiData/activitiesAsCase/items/activityAsCaseType`
  - …187 more

[Change history](https://skmtc.dev/sormas-foundation/apis/sormas-rest-api/changes/cases/push/post.md)

---

[API](https://skmtc.dev/sormas-foundation/apis/sormas-rest-api.md) · [All operations](https://skmtc.dev/sormas-foundation/apis/sormas-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sormas-foundation/sormas-rest-api/revisions/8fcd6fbef5e6/schema)
