Enable or disable escalation on many expiries

posthttps://api.expiryedge.com/v1/bulkUpdateEscalationSettings
editor or admin60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/bulkUpdateEscalationSettings' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "expiryIds": [
    "exp_4Tq9sLm2",
    "exp_7Hn2kPq9"
  ],
  "enable": true
}'
Antwort
{
  "success": true,
  "updated_count": 2,
  "no_contacts_count": 1
}

enable: true turns escalation on and fills escalation_notification_days from the org default only where empty; enable: false only turns it off (contacts and timing are kept). no_contacts_count (enable only) counts items with no escalation contacts. Processed in chunks of 400 ids.

Body-Parameter

application/json
  • expiryIdsarray of stringerforderlich
    min items: 1
  • enablebooleanerforderlich

Rückgabe

200
Result per batch.
  • successbooleanerforderlich
  • updated_countintegererforderlich
  • errorsarray of objects
    Omitted when every id was processed.
  • no_contacts_countinteger
    Present only when enable is true.

Fehler

400
The request is missing required fields or contains invalid values.
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.
500
Unexpected server error. Retry later; quote requestId to support.