Update a notification channel
PATCH
/notifications/channels/{id}
const url = 'https://api.krakenkey.io/notifications/channels/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","url":"example","events":["cert.issued"],"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 https://api.krakenkey.io/notifications/channels/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "url": "example", "events": [ "cert.issued" ], "enabled": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Channel UUID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
string
url
Destination URL. Slack: an incoming webhook (https://hooks.slack.com/services/…). Teams: a Workflows webhook URL (Office 365 connectors are retired). Webhook: any https URL that resolves only to public addresses. Stored encrypted and never returned in full.
string
events
Array<string>
enabled
boolean
Responses
Section titled “Responses”Channel updated
Channel not found