Save Teams and Slack webhook URLs

posthttps://api.expiryedge.com/v1/saveWebhooks
editor 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.

Body-Parameter

application/json
  • teams_webhookstring | null
    Microsoft Teams incoming webhook / Workflows URL (https).
    format: uri
  • slack_webhookstring | null
    Slack incoming webhook URL (https://hooks.slack.com/...).
    format: uri

Rückgabe

200
Saved.
  • messagestringerforderlich
  • teams_webhookstring | null
    Microsoft Teams incoming webhook / Workflows URL (https).
    format: uri
  • slack_webhookstring | null
    Slack incoming webhook URL (https://hooks.slack.com/...).
    format: uri

Fehler

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.