Enable or disable escalation on many expiries
post
https://api.expiryedge.com/v1/bulkUpdateEscalationSettingseditor 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.
expiryIdsarray of stringerforderlichmin items: 1enablebooleanerforderlich
200
Result per batch.
successbooleanerforderlichupdated_countintegererforderlicherrorsarray of objectsOmitted when every id was processed.no_contacts_countintegerPresent only whenenableis true.
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. |
