mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Allow HTTP method selection when using webhook notifications #3061
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#3061
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @skjdghsdjgsdj on GitHub (Jan 23, 2024).
⚠️ Please verify that this feature request has NOT been suggested before.
🏷️ Feature Request Type
New Notification
🔖 Feature description
Some web API endpoints like Hubitat don't allow HTTP POST invocations, only HTTP GET. I'm trying to invoke an HTTP endpoint in Hubitat as part of my Uptime Kuma notifications when a specific device goes down, but the request is rejected because it's HTTP POST and I have no way of selecting GET, which the API requires.
✔️ Solution
Allow the selection of the HTTP method to use, GET vs POST, when setting up a webhook notification. Alternatively, create a new "Webhook (GET)" notification that sends HTTP GET and doesn't send a POST body which, by definition, isn't applicable to GET.
❓ Alternatives
📝 Additional Context
Hubitat API in question: https://docs2.hubitat.com/apps/maker-api
This is not the same as #1734. That issue is for templating of the URL, not explicitly choosing the HTTP method.
Ultimately what I'm trying to do is detect when a specific device on my network goes down, and when it does, invoke the Hubitat API to push a virtual button. On the Hubitat side, that power cycles a smart outlet to reboot the device and bring it back up.
@CommanderStorm commented on GitHub (Jan 23, 2024):
Duplicate of #2413
=> closing as such
Note that our contribution guide is here: https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md