Sample - GitHub REST API
POST/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun

Re-run a job from a workflow run

Re-run a job and its dependent jobs in a workflow run.

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters · 2 body fields
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
job_idintegerrequired
The unique identifier of the job.
enable_debug_loggingbooleanoptional
Whether to enable debug logging for the re-run.
Default:false
enable_debuggerbooleanoptional
Whether to enable the debugger for the re-run of this job.
Default:false

2 status codes
201Response
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 403 is returned: Forbidden.