[GH-ISSUE #440] API: allow specifying enabled integrations by name #330

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

Originally created by @cuu508 on GitHub (Oct 7, 2020).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/440

Suggested in #376:

Another way of having less API calls is if you added a parameter to let you pass in the channels by name rather than by id (it would assume channel names are unique) - that way I could skip the extra API call to get the channel id from the name :)

A few decisions:

  • what to do when API client uses a channel name that does not exist?
  • what to do when API client uses a non-unique channel name?

Could be strict or lenient here. I'm leaning towards strict to avoid subtle configuration mistakes: whenever a channel name in client's payload does not have precisely one match in the database, return HTTP 400 and a descriptive error message.

Originally created by @cuu508 on GitHub (Oct 7, 2020). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/440 Suggested in [#376](https://github.com/healthchecks/healthchecks/issues/376#issuecomment-689814284): > Another way of having less API calls is if you added a parameter to let you pass in the channels by name rather than by id (it would assume channel names are unique) - that way I could skip the extra API call to get the channel id from the name :) A few decisions: * what to do when API client uses a channel name that does not exist? * what to do when API client uses a non-unique channel name? Could be strict or lenient here. I'm leaning towards strict to avoid subtle configuration mistakes: whenever a channel name in client's payload does not have precisely one match in the database, return HTTP 400 and a descriptive error message.
kerem closed this issue 2026-02-25 23:42:03 +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#330
No description provided.