---
title: "Uploads diagnosis key datasets."
method: POST
path: "/diagnosiskeys/upload"
tags: ["Diagnosis Keys Exchange Interface", "Upload"]
---

# Uploads diagnosis key datasets.

`POST /diagnosiskeys/upload`

## Request

- Base URL: `http://localhost:8090`
- URL: `http://localhost:8090/diagnosiskeys/upload`
- Auth: none declared. Required headers: `batchTag`, `batchSignature`, `Content-Type`

Uploads the given batch to the server. Uploader Information is given by the client certificate.

## Headers

- `batchTag` string, required
- `batchSignature` string, required
- `Content-Type` string, required

## Response `201`

Database Entries created.

## Other responses

- `207`: Data partially added with warnings. More details in document.
- `400`: Signature not valid. Bad request.
- `403`: Forbidden call in cause of missing or invalid client certificate.
- `406`: Data format or content is not valid.
- `413`: Data already exist.
- `500`: Not able to write data. Retry please.

---

[API](https://skmtc.dev/eu-federation-gateway-service/apis/efgs-federation-gateway.md) - [All operations](https://skmtc.dev/eu-federation-gateway-service/apis/efgs-federation-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/eu-federation-gateway-service/apis/efgs-federation-gateway/revisions/172696266496?raw)
