Recalculate storage usage from Cloud Storage

posthttps://api.expiryedge.com/v1/recalculateStorage
admin60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/recalculateStorage' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY"
Response
{
  "success": true,
  "message": "Storage recalculated",
  "total_bytes": 54525952,
  "total_formatted": "52 MB"
}

Scans the organization's files in Cloud Storage and overwrites the storage counter. Slow for large organizations.

Returns

200
Recalculated usage.
  • successboolean
  • messagestring
  • total_bytesinteger
  • total_formattedstring

Errors

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.