Save Teams and Slack webhook URLs
post
https://api.expiryedge.com/v1/saveWebhookseditor or admin60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/saveWebhooks' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"teams_webhook": "https://northwind.webhook.office.com/webhookb2/7c1e2a90",
"slack_webhook": "https://hooks.slack.com/services/T0001/B0001/XXXXXXXX"
}'Antwort
{
"message": "Webhooks saved successfully",
"teams_webhook": "https://northwind.webhook.office.com/webhookb2/7c1e2a90",
"slack_webhook": "https://hooks.slack.com/services/T0001/B0001/XXXXXXXX"
}URLs must be https on Microsoft Teams / Power Automate hosts or hooks.slack.com (code: INVALID_WEBHOOK_URL otherwise).
Omitted or empty values clear the webhook.
teams_webhookstring | nullMicrosoft Teams incoming webhook / Workflows URL (https).format: urislack_webhookstring | nullSlack incoming webhook URL (https://hooks.slack.com/...).format: uri
200
Saved.
messagestringerforderlichteams_webhookstring | nullMicrosoft Teams incoming webhook / Workflows URL (https).format: urislack_webhookstring | nullSlack incoming webhook URL (https://hooks.slack.com/...).format: uri
400 | Invalid webhook URL or no organization. |
401 | Missing, expired or invalid bearer token. |
403 | Authenticated, but your role or organization does not allow this action. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
