Get what a user owns before deleting them
get
https://api.expiryedge.com/v1/user/dependencies/{userId}bearer token (Firebase ID token only); role admin60/min
Anfrage
curl 'https://api.expiryedge.com/v1/user/dependencies/u_4Np8cZe' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY"Antwort
{
"expiriesCount": 14,
"assignedExpiriesCount": 1,
"totalExpiriesCount": 15,
"contactsCount": 6,
"teamsCount": 1,
"teams": [
{
"id": "tm_3Fh8qLx",
"name": "Front Desk"
}
],
"assignedExpiries": [
{
"id": "exp_4Tq9sLm2",
"name": "Dental license renewal"
}
],
"userData": {
"email": "sam@northwinddental.com",
"displayName": "Sam Ortiz",
"role": "editor",
"status": "active"
}
}Counts the user's owned and assigned expiries, contacts and team memberships.
userIdstringerforderlich
200
Dependency counts.
expiriesCountintegererforderlichExpiries the user owns.assignedExpiriesCountintegererforderlichExpiries assigned to (but not owned by) the user.totalExpiriesCountintegererforderlichcontactsCountintegererforderlichteamsCountintegererforderlichteamsarray of objectserforderlichassignedExpiriesarray of objectserforderlichuserDataobjecterforderlich
401 | Missing, expired or invalid bearer token. |
403 | Authenticated, but your role or organization does not allow this action. |
404 | The record does not exist or is not in your organization. |
405 | The endpoint does not accept this HTTP method. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
500 | Unexpected server error. Retry later; quote requestId to support. |
