ReferenceHTTP API
storageOccupancy
The storageOccupancy router: 1 method of the storage-occupancy capability, with tier, scope, input and output.
Capability storage-occupancy · scope system · mode collection · source packages/types/src/capabilities/storage-occupancy.cap.ts:52.
Every method is called at /trpc/storageOccupancy.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getOccupancy | query | admin | admin only | no |
storageOccupancy.getOccupancy
- Kind: query —
GET /trpc/storageOccupancy.getOccupancy - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=storageOccupancy.getOccupancyon your hub
Input
{ locationIds: string[] }Output
StorageOccupancyReportSchema[]Shapes: StorageOccupancyReportSchema