Tearleads

GET/organizations/{organizationId}/data-usage

Get organization data usage

Operation organizations.dataUsage.get

Description

Returns how many bytes of documents and blobs an organization stores, broken down by document category. Any organization member may call it.

Authentication

Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.

Parameters

NameInTypeDetails
organizationIdpathstringrequired
  • lowercase UUID v4

Responses

200 OK

application/jsonOrganizationDataUsageResponse

How much an organization stores, by documents and blobs.

4 fields
  • organizationIdstringrequired
    • not empty
  • blobsobjectrequired
    2 fields
    • blobCountintegerrequired
      • at least 0
    • byteLengthintegerrequired
      • at least 0
  • documentsobjectrequired
    4 fields
    • breakdownlist of objectrequired
      • exactly 4 items
      4 fields
      • byteLengthintegerrequired
        • at least 0
      • categorystringrequired
        • one of containerMetadata, rosterProfiles, organizationMetadata, user
      • documentCountintegerrequired
        • at least 0
      • updateCountintegerrequired
        • at least 0
    • byteLengthintegerrequired
      • at least 0
    • documentCountintegerrequired
      • at least 0
    • updateCountintegerrequired
      • at least 0
  • totalByteLengthintegerrequired
    • at least 0

    Document plus blob bytes.

Other responses

StatusMeaningBody
400Bad Request

application/jsonErrorResponse

401Unauthorized

application/jsonSessionFailureResponse

403Forbidden

application/jsonOrganizationPresentationFailureResponse

404Not Found

application/jsonOrganizationPresentationFailureResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse

Additional rules

The server also enforces these rules, which the schema above cannot express.

  • totalByteLength equals the sum of document and blob byte lengths.

  • The document usage breakdown contains each document category exactly once.

  • Document usage totals equal the sums of the category breakdown.