ReferenceHTTP API
storageEvictable
The storageEvictable router: 2 methods of the storage-evictable capability, with tier, scope, input and output.
Capability storage-evictable · scope system · mode collection · source packages/types/src/capabilities/storage-evictable.cap.ts:34.
Every method is called at /trpc/storageEvictable.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getEvictableUsage | query | admin | admin only | no |
evict | mutation | admin | admin only | no |
storageEvictable.getEvictableUsage
- Kind: query —
GET /trpc/storageEvictable.getEvictableUsage - 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=storageEvictable.getEvictableUsageon your hub
Input
{ locationId: string }Output
{ bytes: number }storageEvictable.evict
- Kind: mutation —
POST /trpc/storageEvictable.evict - 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=storageEvictable.evicton your hub
Input
{ locationId: string; targetBytes: number }Output
{ reclaimedBytes: number; exhausted: boolean }