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

# Create or update one or multiple entities.

`POST /pathogentests/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).

---

[API](https://skmtc.net/sormas-foundation/apis/sormas-rest-api.md) · [All operations](https://skmtc.net/sormas-foundation/apis/sormas-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sormas-foundation/sormas-rest-api/versions/cd7769a6248c/schema)
