Count expiries per type for a metric card
post
https://api.expiryedge.com/v1/getExpiryTypesany 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.
metricFilterstringDashboard metric card to filter by.ErlaubttotalcompletedexpiredarchivedactivetodayupcomingThisMonthfutureselectedTeamstringfutureDurationDaysinteger or string
200
Type name -> count.
map of integer
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. |
