Skip to main content
PATCH
Error

Authorizations

Authorization
string
header
required

A staff session token, uk_st_…. Minted by sign-up, sign-in or the two-factor exchange. Only a 401 means it is spent; not_a_member (403) is about the organization named in X-Organization-Id and leaves the token good for the others.

Headers

X-Organization-Id
string

The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing: the answer is not_a_member (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.

Path Parameters

id
string<uuid>
required

The alert channel's id. An id from another organization matches no row and answers 404.

Body

application/json
destination
string

A new destination, validated against the channel's existing kind.

description
string
enabled
boolean

Response

Updated.

id
string<uuid>
kind
enum<string>

Not editable after registration: the delivery history hangs off the channel, and a channel whose kind changed is a different destination wearing another one's record.

Available options:
slack,
discord,
email
destination_hint
string

What may be shown in place of the destination: the host for a chat hook (hooks.slack.com), the address for an email. Never a fragment of the webhook path — that is the part of the credential with the entropy in it.

description
string

Your label. What tells two channels on one workspace apart, since the hint is only the host.

enabled
boolean
disabled_reason
string

Why it is off when nobody turned it off — a destination the provider answered 410 or 404 for no longer exists, and we stop rather than retry into it. Empty for a channel you paused yourself.

last_delivered_at
string<date-time> | null

null means nothing has ever gone out, which is the normal state on a healthy organization. It is also why the test send exists.

created_at
string<date-time>