PATCH
Change a destination, or switch it off

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Path Parameters

id
string<uuid>
required

Body

application/json
name
string
required
Maximum string length: 100
channel
string
required
Maximum string length: 24
events
string[]
required
Required array length: 1 - 32 elements
url
string

The destination, for a vendor whose host the customer names and whose credential is separate. Omit it when the URL is itself the credential (send it as secret) and when the vendor's host is fixed.

Maximum string length: 2048
config
object

The channel's non-secret settings, as strings: see the table on GET /notification-targets. A key the channel does not use is a 400, not an ignored field.

secret
string

The destination's one credential. Stored encrypted, never returned.

min_severity
enum<string>
Available options:
critical,
high,
medium,
low,
info
only_blocking
boolean
enabled
boolean

PATCH only. On its own it switches the destination off or on.

Response

The updated destination.

target
object
required

One outbound notification destination. The stored secret is not here and has no read path at all, in any response: it is the customer's own credential and TRUSTIVAN has no business showing it back. url is absent for the same reason (for Slack and Teams the destination URL IS the credential), and configured reports only whether a secret is set.