Uptime API › Notification channels
Link a channel to a monitor
POST/api/v1/monitors/{id}/channels/{chId}
Sends the monitor's alerts to the channel as well. Linking a channel that is already linked succeeds.
Requires the uptime:channel:write scope.
Authorization
Parameters
Path parameters
idstring requiredThe monitor's ID.chIdstring requiredThe notification channel's ID.
Responses
204
The channel is linked.
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
404
The monitor (MONITOR_NOT_FOUND) or the channel (CHANNEL_NOT_FOUND) does not exist or is not visible to the caller.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
429
Too many requests (RATE_LIMITED). Wait for Retry-After seconds.
Retry-AfterintegerSeconds to wait before retrying.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
Example request
curl -X POST 'https://evohub.io/api/v1/monitors/mon_8c1d0b52-6f3e-4a7d-9b21-0e5c4f7a3d19/channels/nch_6a9d2f4b-8c1e-4b3a-9f7d-5e0c2a8b4d16' \
-H 'Authorization: Bearer <TOKEN>'