ReferenceHTTP API
recordEntries
The recordEntries router: 4 methods of the record-entries capability, with tier, scope, input and output.
Capability record-entries · scope system · mode singleton · source packages/types/src/capabilities/record-entries.cap.ts:47.
Every method is called at /trpc/recordEntries.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
listEntryKinds | query | admin | admin only | no |
listEntries | query | admin | admin only | no |
putEntry | mutation | admin | admin only | no |
deleteEntry | mutation | admin | admin only | no |
recordEntries.listEntryKinds
- Kind: query —
GET /trpc/recordEntries.listEntryKinds - 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=recordEntries.listEntryKindson your hub
Input
{}Output
{ kinds: EntryKindInfoSchema[] }Shapes: EntryKindInfoSchema
recordEntries.listEntries
- Kind: query —
GET /trpc/recordEntries.listEntries - 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=recordEntries.listEntrieson your hub
Input
{ owner: string; kind: string }Output
{ entries: EntryViewSchema[] }Shapes: EntryViewSchema
recordEntries.putEntry
- Kind: mutation —
POST /trpc/recordEntries.putEntry - 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=recordEntries.putEntryon your hub
Input
{ owner: string; kind: string; id?: string; data: RecordBodySchema; ifRev?: number }Output
{ id: string; rev: number }Shapes: RecordBodySchema
recordEntries.deleteEntry
- Kind: mutation —
POST /trpc/recordEntries.deleteEntry - 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=recordEntries.deleteEntryon your hub
Input
{ owner: string; kind: string; id: string }Output
{ deleted: boolean }