/channels/{id} (PATCH)
const url = 'https://culipulse.dev/v1/channels/mon_123';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","enabled":true,"all_monitors":true,"monitor_ids":["example"]}'};
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://culipulse.dev/v1/channels/mon_123 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "enabled": true, "all_monitors": true, "monitor_ids": [ "example" ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
mon_123Request Body
Section titled “Request Body”Changing type or sending url returns 400. Delete and recreate the channel instead.
object
Replaces the whole routing list, atomically: a failed request leaves the previous list untouched. Duplicates and ids that are not yours are ignored. More distinct ids than your plan’s monitor limit (or than the monitors you own, if that is higher) returns 400 too_many_monitors.
Examplegenerated
{ "name": "example", "enabled": true, "all_monitors": true, "monitor_ids": [ "example" ]}Responses
Section titled “Responses”Updated
object
Example
{ "ok": true}Invalid request, or more monitor ids than the plan allows (code: too_many_monitors)
object
Present on some 400s so a client can branch without parsing error. Known values: channel_limit_reached, too_many_monitors, duplicate_webhook_url.
The request field the error is about, when there is one.
The limit that was hit, when code names one.
Example
{ "error": "not found", "request_id": "req_abc123", "code": "channel_limit_reached"}Not found
object
Present on some 400s so a client can branch without parsing error. Known values: channel_limit_reached, too_many_monitors, duplicate_webhook_url.
The request field the error is about, when there is one.
The limit that was hit, when code names one.
Example
{ "error": "not found", "request_id": "req_abc123", "code": "channel_limit_reached"}