---
title: "Create or Update new callback subscription URL."
method: PUT
path: "/diagnosiskeys/callback/{id}"
tags: ["Diagnosis Keys Exchange Interface", "Callback"]
---

# Create or Update new callback subscription URL.

`PUT /diagnosiskeys/callback/{id}`

## Request

- Base URL: `http://localhost:8090`
- URL: `http://localhost:8090/diagnosiskeys/callback/{id}`
- Auth: none declared

## Path parameters

- `id` string, required

## Query parameters

- `url` string, required

## Response `200`

OK.

## Other responses

- `400`: One or more parameters are invalid.
- `403`: Forbidden call in cause of missing or invalid client certificate.
- `406`: URL has not the expected format.
- `500`: Not able to write data. Retry please.

## Changes

- **2020-09-07** `085678f2846d`: 2 info
  - api operation id `putOrUpdateCallback` removed and replaced with `putOrUpdateCallbackSubscription`
  - added the non-success response with the status `400`
- **2020-08-14** `4a4a3768a3d1`: 2 info
  - api operation id `putOrUpdateCallbackSubscription` removed and replaced with `putOrUpdateCallback`
  - removed the non-success response with the status `400`

[Operation history](https://skmtc.dev/eu-federation-gateway-service/apis/efgs-federation-gateway/changes/diagnosiskeys/callback/:id/put.md)

---

[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)
