ReferenceHTTP API
databaseSnapshot
The databaseSnapshot router: 2 methods of the database-snapshot capability, with tier, scope, input and output.
Capability database-snapshot · scope system · mode singleton · source packages/types/src/capabilities/database-snapshot.cap.ts:126.
Every method is called at /trpc/databaseSnapshot.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
listDatabases | query | admin | admin only | no |
writeSnapshot | mutation | admin | admin only | no |
databaseSnapshot.listDatabases
- Kind: query —
GET /trpc/databaseSnapshot.listDatabases - 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=databaseSnapshot.listDatabaseson your hub
Input
{}Output
DatabaseSnapshotTargetsSchemaShapes: DatabaseSnapshotTargetsSchema
databaseSnapshot.writeSnapshot
- Kind: mutation —
POST /trpc/databaseSnapshot.writeSnapshot - 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=databaseSnapshot.writeSnapshoton your hub
Input
DatabaseSnapshotRequestSchemaOutput
DatabaseSnapshotWrittenSchemaShapes: DatabaseSnapshotRequestSchema · DatabaseSnapshotWrittenSchema