Re-run a job from a workflow run
POST
/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun
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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” owner
required
string
The account owner of the repository. The name is not case sensitive.
repo
required
string
The name of the repository without the .git extension. The name is not case sensitive.
job_id
required
integer
The unique identifier of the job.
Request Body
Section titled “ Request Body ” Media type application/json
object
enable_debug_logging
Whether to enable debug logging for the re-run.
boolean
enable_debugger
Whether to enable the debugger for the re-run of this job.
boolean
Examples
Example default
nullResponses
Section titled “ Responses ”Response
Media type application/json
Empty Object
An object without any properties.
object
Examples
Example default
nullForbidden
Media type application/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}