Dominevo
ReferenceHTTP API

integrationInstances

The integrationInstances router: 9 methods of the integration-instances capability, with tier, scope, input and output.

Capability integration-instances · scope system · mode collection · source packages/types/src/capabilities/integration-instances.cap.ts:234.

Every method is called at /trpc/integrationInstances.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
describequeryadminadmin onlyno
instanceFormSchemaqueryadminadmin onlyno
listInstancesqueryprotectedviewno
getInstancequeryprotectedviewno
createInstancemutationprotectedcreateno
updateInstancemutationprotectedcreateno
setInstanceEnabledmutationprotectedcreateno
deleteInstancemutationprotecteddeleteno
testInstancemutationprotectedcreateno

integrationInstances.describe

  • Kind: query — GET /trpc/integrationInstances.describe
  • 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=integrationInstances.describe on your hub

Input

void

Output

IntegrationInstanceDescriptionSchema

Shapes: IntegrationInstanceDescriptionSchema

integrationInstances.instanceFormSchema

  • Kind: query — GET /trpc/integrationInstances.instanceFormSchema
  • 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=integrationInstances.instanceFormSchema on your hub

Input

{ id: string | null; kind?: string; mode?: "standalone" | "account" | "broker"; candidateStableId?: string }

Output

<custom>

integrationInstances.listInstances

  • Kind: query — GET /trpc/integrationInstances.listInstances
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability integration-instances, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=integrationInstances.listInstances on your hub

Input

{}

Output

IntegrationInstanceSchema[]

Shapes: IntegrationInstanceSchema

integrationInstances.getInstance

  • Kind: query — GET /trpc/integrationInstances.getInstance
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability integration-instances, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=integrationInstances.getInstance on your hub

Input

{ id: string }

Output

IntegrationInstanceSchema | null

Shapes: IntegrationInstanceSchema

integrationInstances.createInstance

  • Kind: mutation — POST /trpc/integrationInstances.createInstance
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability integration-instances, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=integrationInstances.createInstance on your hub

Input

{ id?: string; name: string; kind?: string; values?: Record<string, unknown>; originStableId?: string; seed?: { info: Record<string, unknown> } }

Output

{ id: string }

integrationInstances.updateInstance

  • Kind: mutation — POST /trpc/integrationInstances.updateInstance
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability integration-instances, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=integrationInstances.updateInstance on your hub

Input

IntegrationInstancePatchSchema

Output

{ ok: true }

Shapes: IntegrationInstancePatchSchema

integrationInstances.setInstanceEnabled

  • Kind: mutation — POST /trpc/integrationInstances.setInstanceEnabled
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability integration-instances, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=integrationInstances.setInstanceEnabled on your hub

Input

{ id: string; enabled: boolean }

Output

{ ok: true }

integrationInstances.deleteInstance

  • Kind: mutation — POST /trpc/integrationInstances.deleteInstance
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: delete on capability integration-instances, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=integrationInstances.deleteInstance on your hub

Input

{ id: string }

Output

{ ok: true }

integrationInstances.testInstance

  • Kind: mutation — POST /trpc/integrationInstances.testInstance
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability integration-instances, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=integrationInstances.testInstance on your hub

Input

{ id: string | null; values: Record<string, unknown>; kind?: string }

Output

TestConnectionResultSchema

Shapes: TestConnectionResultSchema