Count expiries per type for a metric card

posthttps://api.expiryedge.com/v1/getExpiryTypes
any role60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/getExpiryTypes' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "metricFilter": "active",
  "selectedTeam": "0"
}'
Antwort
{
  "License": 12,
  "Insurance": 7,
  "Other": 2
}

Returns a map of expiry type name to count, filtered by the same metric as getPaginatedExpiries. Records without a type count as Other.

Body-Parameter

application/json
  • metricFilterstring
    Dashboard metric card to filter by.
    ErlaubttotalcompletedexpiredarchivedactivetodayupcomingThisMonthfuture
  • selectedTeamstring
  • futureDurationDaysinteger or string

Rückgabe

200
Type name -> count.

map of integer

Fehler

400
The request is missing required fields or contains invalid values.
401
Missing, expired or invalid bearer token.
404
The record does not exist or is not in your organization.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.