---
title: "Update a notification destination"
method: PATCH
path: "/orgs/{org_id}/governance/notification-destinations/{destination_id}"
tags: ["Governance"]
---

# Update a notification destination

`PATCH /orgs/{org_id}/governance/notification-destinations/{destination_id}`

## Request

- Base URL: `https://api.mnemom.ai/v1`
- URL: `https://api.mnemom.ai/v1/orgs/{org_id}/governance/notification-destinations/{destination_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Mnemom-Api-Key`

Authorized: org_admin or org_owner. For `webhook` and `slack` channels, `config.url` — Outbound URL rules: the URL must be https and must point at a publicly reachable host. Credentials in the URL, single-label or internal host names (localhost, *.local, *.internal, *.home.arpa), and hosts that are or resolve to loopback, private (RFC1918), link-local (including cloud metadata), CGNAT, IPv6 unique-local/link-local, or other non-public addresses are rejected with 400. The host is resolved and re-checked again before every delivery and every redirect hop.

## Path parameters

- `org_id` string, required
- `destination_id` string, uuid, required

## Request body

- object
  - `config` object: Replacement channel-specific delivery settings (e.g. webhook { url, secret }, slack { webhook_url }, email { to }, pagerduty { routing_key }); omit to keep the current ones.
  - `filter` GovernanceDestinationFilter
    - `sources` GovernanceSignalSource[]
    - `severities` GovernanceSignalSeverity[]
    - `scopes` GovernanceSignalScope[]
    - `pattern_types` string[]
  - `enabled` boolean: Turn the destination on or off; omit to leave it unchanged.
  - `display_name` string, nullable: New label shown in the operator console; null clears it, omit to keep the current one.

## Response `200`

Notification destination.

- GovernanceNotificationDestination
  - `id` string, uuid, required
  - `org_id` string, required
  - `channel` 'webhook' | 'slack' | 'email' | 'pagerduty', required
  - `config` object, required
  - `filter` GovernanceDestinationFilter, required
    - `sources` GovernanceSignalSource[]
    - `severities` GovernanceSignalSeverity[]
    - `scopes` GovernanceSignalScope[]
    - `pattern_types` string[]
  - `enabled` boolean, required
  - `display_name` string, nullable
  - `created_by` string, uuid, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `last_tested_at` string, date-time, nullable
  - `last_test_status` 'ok' | 'failed', nullable
  - `last_test_error` string, nullable

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `429`: Rate-limit exceeded. The global per-IP limiter (100 requests/minute, applied to every `/v1/*` route) rejected this request. Back off until the window resets — `Retry-After` carries the cooldown in seconds and `X-RateLimit-Reset` the absolute reset time.
- `500`: Server error — request was well-formed but the server failed to fulfill it. Typically a downstream dependency (DB / RPC / external API) returned an unexpected error.

---

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