Update a notification target
const url = 'http://localhost:3000/api/v1/notification-targets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"Ops on-call email","channel":"EMAIL","email":"ops@example.com","url":"https://hooks.example.com/services/T000/B000/XXXX","headers":{"X-Tenant-Token":"abc123"},"secret":"example","enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:3000/api/v1/notification-targets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "Ops on-call email", "channel": "EMAIL", "email": "ops@example.com", "url": "https://hooks.example.com/services/T000/B000/XXXX", "headers": { "X-Tenant-Token": "abc123" }, "secret": "example", "enabled": true }'The channel is immutable — switching transports would leave the stored config mismatched and would retroactively mislabel every delivery already recorded against the target.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Human-readable target name
Example
Ops on-call emailDelivery transport
Recipient address. Required when channel is EMAIL.
Example
ops@example.comEndpoint to POST to. Required when channel is WEBHOOK. Must be a public http(s) URL — private, loopback, link-local and in-cluster addresses are rejected to prevent SSRF.
Example
https://hooks.example.com/services/T000/B000/XXXXExtra headers sent on every webhook delivery. WEBHOOK only.
object
Example
{ "X-Tenant-Token": "abc123"}HMAC-SHA256 key used to sign webhook deliveries (X-Webhook-Signature). WEBHOOK only. Generated automatically when omitted — it is returned once on create and never again.
Whether the target receives deliveries
Responses
Section titled “Responses”object
EMAIL targets only
object
WEBHOOK targets only
object
WEBHOOK targets only
object
Whether webhook deliveries to this target are signed
Example
{ "name": "Ops on-call email", "channel": "EMAIL"}No such target in the caller’s organization