Skip to main content

Replace a notification channel's configuration

PUT 

/notifications/channels/:channelId

Required role: admin. Only an account or token with the admin role can call this operation.

Example request
curl --request PUT \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
--header "Content-Type: application/json" \
--data @body.json \
"https://$HOSERVA_HOST:8008/api/v1/notifications/channels/{channelId}"

A full replace, like the request body of createNotificationChannel: every type-specific field the request omits is cleared, not left as it was. secret is tri-state — omitted keeps the existing credential, null clears it, a string replaces it — since this is the one field a response never echoes back for a client to resend unchanged.

Request​

Responses​

The updated channel.