ReferenceHTTP API
customModelRegistry
The customModelRegistry router: 2 methods of the custom-model-registry capability, with tier, scope, input and output.
Capability custom-model-registry · scope system · mode collection · source packages/types/src/capabilities/custom-model-registry.cap.ts:93.
Every method is called at /trpc/customModelRegistry.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
listModels | query | admin | admin only | no |
importModelBundle | mutation | admin | admin only | no |
customModelRegistry.listModels
- Kind: query —
GET /trpc/customModelRegistry.listModels - 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=customModelRegistry.listModelson your hub
Input
voidOutput
CustomModelDescriptorSchema[]Shapes: CustomModelDescriptorSchema
customModelRegistry.importModelBundle
- Kind: mutation —
POST /trpc/customModelRegistry.importModelBundle - 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=customModelRegistry.importModelBundleon your hub
Input
ImportModelBundleInputSchemaOutput
ImportModelBundleResultSchemaShapes: ImportModelBundleInputSchema · ImportModelBundleResultSchema