Tearleads

GET/root/jobs/{jobId}/runs

Page a scheduled job's runs

Operation root.jobs.runs.list

Description

Pages a scheduled job's recorded runs, newest first, optionally only those with one status. Successful runs are kept for 7 days and others for 30. Only root operators may call it, and each request is recorded in the root audit trail.

Authentication

Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.

Parameters

NameInTypeDetails
jobIdpathstringrequired
  • pattern ^[a-z][a-z0-9-]{0,63}$
cursorquerystringoptional
  • not empty
limitqueryintegeroptional
  • 1 to 200
statusquerystringoptional
  • one of running, succeeded, failed

Responses

200 OK

application/jsonRootJobRunsResponse

A page of a scheduled job's runs, newest first.

2 fields
  • runslist of RootJobRunSummaryResponserequired
  • nextCursorstringrequirednullable

    Opaque cursor for the next page, or null at the end.

Other fields are allowed.

Other responses

StatusMeaningBody
400Bad Request

application/jsonErrorResponse

401Unauthorized

application/jsonSessionFailureResponse

403Forbidden

application/jsonErrorResponse

404Not Found

application/jsonErrorResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse