---
title: "Update config"
method: PATCH
path: "/v1/destinations/{destinationId}"
tags: ["destinations"]
---

# Update config

`PATCH /v1/destinations/{destinationId}`

## Request

- Base URL: `https://postbag.dev`
- URL: `https://postbag.dev/v1/destinations/{destinationId}`
- Auth: HTTP bearer

## Path parameters

- `destinationId` string, required

## Request body

- object
  - `name` string: A display label for this destination.
  - `config` object: Merged shallowly into the existing config (type-specific: to/cc for email, chat_id/bot_token for telegram, url/secret for webhook).

## Response `200`

ok

- Destination
  - `id` string, required
  - `type` 'email' | 'telegram' | 'webhook' | 'slack' | 'discord', required
  - `name` string, required
  - `config` object, required
  - `health` 'unknown' | 'ok' | 'failing', required
  - `verified` boolean, required
  - `created_at` string, required

## Other responses

- `400`: Error
- `401`: Error
- `403`: Error
- `404`: Not found
- `409`: Error
- `422`: Error

---

[API](https://skmtc.dev/postbag/apis/postbag-api.md) · [All operations](https://skmtc.dev/postbag/apis/postbag-api/llms.txt) · [OpenAPI document](https://skmtc.dev/postbag/apis/postbag-api/revisions/3da976524695?raw)
