Attach an alert channel to a monitor

Adds one alert channel to this monitor's routing set without otherwise touching its configuration, and returns the updated monitor. Deliberately not PUT /monitors/{id}: that body is a full replace, so it re-validates interval and regions against the current plan (a monitor grandfathered below its plan's floor could not be routed at all) and a stale material field would reset the schedule and the per-region streaks. Idempotent — attaching an already-attached channel succeeds and changes nothing. A missing or foreign monitor or channel id returns 404; a channel type outside the plan returns 400.

post/monitors/{id}/channels/{cid}

Request

  • Base URL: https://app.yoping.me/api/v1
  • URL: https://app.yoping.me/api/v1/monitors/{id}/channels/{cid}
  • Auth: API key in cookie yp_session

Path parameters

idstring required

Resource id. Ids belonging to another account behave as missing (404).

cidstring required

Alert channel id. Ids belonging to another account behave as missing (404).

Response

Channel attached; the monitor's current state.

Changes

No recorded changes to this operation across all 1 revision of this API.