Dominevo
ReferenceHTTP API

preferences

The preferences router: 4 hand-written core methods, with tier, input and output.

A core router of the hub (not a capability), source server/backend/src/api/core/preferences.router.ts. Its methods are called at /trpc/preferences.<method>. A core method checks only the tier: a scoped token that is signed in reaches every protected method here, unless the method itself refuses it. See How to call and Authorization.

Inputs and outputs are the validation schemas as written in the source.

MethodKindTier
getqueryprotected
putmutationprotected
deletemutationprotected
changedSincequeryprotected

preferences.get

  • Kind: query — GET /trpc/preferences.get
  • Tier: protected — any signed-in principal
  • Source: server/backend/src/api/core/preferences.router.ts:115
  • Try it: open /system/api-explorer?method=preferences.get on your hub

Input

PreferencesGetInputSchema

Output

PreferencesGetOutputSchema

preferences.put

  • Kind: mutation — POST /trpc/preferences.put
  • Tier: protected — any signed-in principal
  • Source: server/backend/src/api/core/preferences.router.ts:122
  • Try it: open /system/api-explorer?method=preferences.put on your hub

Input

PreferencesPutInputSchema

Output

PreferencesPutOutputSchema

preferences.delete

  • Kind: mutation — POST /trpc/preferences.delete
  • Tier: protected — any signed-in principal
  • Source: server/backend/src/api/core/preferences.router.ts:133
  • Try it: open /system/api-explorer?method=preferences.delete on your hub

Input

PreferencesDeleteInputSchema

Output

PreferencesDeleteOutputSchema

preferences.changedSince

  • Kind: query — GET /trpc/preferences.changedSince
  • Tier: protected — any signed-in principal
  • Source: server/backend/src/api/core/preferences.router.ts:140
  • Try it: open /system/api-explorer?method=preferences.changedSince on your hub

Input

PreferencesChangedSinceInputSchema

Output

PreferencesChangedSinceOutputSchema