[GH-ISSUE #335] API: validate channel identifiers before creating/updating a check #256

Closed
opened 2026-02-25 23:41:47 +03:00 by kerem · 0 comments
Owner

Originally created by @cuu508 on GitHub (Feb 19, 2020).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/335

Currently, creating a check via API works in two steps:

  1. create check
  2. associate it with the channels

If any of the channel identifiers in payload JSON is invalid, step 2 fails and client receives 400 Bad Request response, but step 1 still goes through.

This should be an atomic operation: either both steps succeed, or the check doesn't get created.

Originally created by @cuu508 on GitHub (Feb 19, 2020). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/335 Currently, creating a check via API works in two steps: 1. create check 2. associate it with the channels If any of the channel identifiers in payload JSON is invalid, step 2 fails and client receives 400 Bad Request response, but step 1 still goes through. This should be an atomic operation: either both steps succeed, or the check doesn't get created.
kerem closed this issue 2026-02-25 23:41:47 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#256
No description provided.