ReferenceHTTP API
jobs
The jobs router: 8 methods of the jobs capability, with tier, scope, input and output.
Capability jobs · scope system · mode singleton · source packages/types/src/capabilities/jobs.cap.ts:99.
Every method is called at /trpc/jobs.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
register | mutation | admin | admin only | no |
update | mutation | admin | admin only | no |
list | query | protected | view | yes |
get | query | protected | view | yes |
getSummary | query | protected | view | yes |
cancel | mutation | protected | create | yes |
dismiss | mutation | protected | create | yes |
collect | query | protected | view | yes |
jobs.register
- Kind: mutation —
POST /trpc/jobs.register - 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=jobs.registeron your hub
Input
JobRegisterInputSchemaOutput
{ jobId: string }Shapes: JobRegisterInputSchema
jobs.update
- Kind: mutation —
POST /trpc/jobs.update - 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=jobs.updateon your hub
Input
JobUpdateInputSchemaOutput
{ updated: boolean }Shapes: JobUpdateInputSchema
jobs.list
- Kind: query —
GET /trpc/jobs.list - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityjobs, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=jobs.liston your hub
Input
{ states?: JobStateSchema[]; includeDismissed?: boolean = false; entity?: JobEntityRefSchema; limit?: number }Output
JobSchema[]Shapes: JobStateSchema · JobEntityRefSchema · JobSchema
jobs.get
- Kind: query —
GET /trpc/jobs.get - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityjobs, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=jobs.geton your hub
Input
{ jobId: string }Output
JobSchema | nullShapes: JobSchema
jobs.getSummary
- Kind: query —
GET /trpc/jobs.getSummary - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityjobs, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=jobs.getSummaryon your hub
Input
{}Output
JobSummarySchemaShapes: JobSummarySchema
jobs.cancel
- Kind: mutation —
POST /trpc/jobs.cancel - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityjobs, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=jobs.cancelon your hub
Input
{ jobId: string }Output
{ accepted: boolean; reason: JobCancelReasonSchema | null }Shapes: JobCancelReasonSchema
jobs.dismiss
- Kind: mutation —
POST /trpc/jobs.dismiss - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityjobs, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=jobs.dismisson your hub
Input
{ jobId: string }Output
{ dismissed: boolean }jobs.collect
- Kind: query —
GET /trpc/jobs.collect - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityjobs, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=jobs.collecton your hub
Input
{ jobId: string }Output
JobResultSchema | nullShapes: JobResultSchema