---
title: "Update a channel"
method: PUT
path: "/notification-channels/{publicId}"
tags: ["Notification channels"]
---

# Update a channel

`PUT /notification-channels/{publicId}`

## Request

- Base URL: `https://api.poststack.dev`
- URL: `https://api.poststack.dev/notification-channels/{publicId}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://poststack.dev/oauth/authorize`
    - Token URL: `https://poststack.dev/oauth/token`
- TypeScript: <https://skmtc.dev/poststack/apis/poststack-api/docs/notification-channels/:publicId/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `publicId` string, required

## Request body

- UpdateNotificationChannelInput
  - `name` string
  - `events` string[]
  - `domainId` integer, nullable
  - `mailboxId` integer, nullable
  - `enabled` boolean
  - `config` object

## Response `200`

Updated.

- object
  - `channel` NotificationChannel, required
    - `publicId` string, required: `nc_…` id.
    - `type` 'slack' | 'discord' | 'telegram' | 'web_push', required
    - `name` string, required
    - `domainId` integer, nullable
    - `mailboxId` integer, nullable
    - `events` string[], required
    - `active` boolean, required
    - `configSummary` object: Masked view of the channel config — secrets are never returned.
    - `consecutiveFailures` integer
    - `disabledAt` string, date-time, nullable
    - `disabledReason` string, nullable
    - `lastUsedAt` string, date-time, nullable
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400`: Validation failed — `error` names each offending field (`field: message`).
- `401`: Missing, malformed or unknown credentials (`WWW-Authenticate: Bearer …` is set).
- `403`: The credential lacks the `notifications:manage` scope (body `{ error: "insufficient_scope", required, missing }`), or the team is suspended.
- `404`: Channel, domain or mailbox not found.
- `429`: Rate limited (60/min). `Retry-After` gives the seconds to wait; `X-RateLimit-*` headers are sent on every response.

## Changes

- **2026-09-30** `4dc1e20989c8`: 15 warning
  - added the new `daily_limit_exceeded` enum value to the `anyOf[#/components/schemas/Error]/code` response property for the response status `403`
  - added the new `daily_limit_exceeded` enum value to the `code` response property for the response status `400`
  - added the new `daily_limit_exceeded` enum value to the `code` response property for the response status `401`
  - added the new `daily_limit_exceeded` enum value to the `code` response property for the response status `404`
  - …11 more
- **2026-09-29** `ef5b22b98333`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/poststack/apis/poststack-api/changes/notification-channels/:publicId/put.md)

---

[API](https://skmtc.dev/poststack/apis/poststack-api.md) - [All operations](https://skmtc.dev/poststack/apis/poststack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/poststack/apis/poststack-api/revisions/0d3971e3a670?raw)
