triggerJob()
Signature
client.triggerJob(id: string): Promise<SimpleResponse>Parameters#
| Param | Type | Description |
|---|---|---|
id | string | UUID of the job to trigger |
Usage#
ts
import { VeloraClient } from '@rimora/velora'
import fetch from 'node-fetch'
const client = new VeloraClient({
apiKey: process.env.VELORA_API_KEY,
fetch: fetch as any
})
const jobId = '9f4a1c2b-3d4e-5f6a-7b8c-9d0e1f2a3b4c'
// Fire an immediate run (e.g. after a data import)
const result = await client.triggerJob(jobId)
console.log(result.msg) // "Job triggered"
console.log(result.triggered_at) // ISO timestampResponse#
SimpleResponse
{
"id": "9f4a1c2b-3d4e-5f6a-7b8c-9d0e1f2a3b4c",
"msg": "Job triggered",
"triggered_at": "2026-04-07T15:30:00.000Z"
}Manually triggering a job does not shift its scheduled
next_run_at. The normal schedule continues unaffected.Required scope#
Requires: jobs:write or jobs:trigger (or admin, *)
Common errors#
| Status | error | Cause |
|---|---|---|
401 | invalid_api_key | Missing or revoked API key |
403 | insufficient_scope | Key lacks jobs:write or jobs:trigger scope |
404 | not_found | Job does not exist |