> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# actions_rerun_failed_jobs

> Re-run only the failed jobs of a run, and the jobs that depend on them. The right tool for a flaky test; `actions_rerun_workflow` re-runs everything, including what already passed.

<div className="tool-route"><span className="tool-row-method" data-method="POST">POST</span><code>{"https://api.github.com/repos/{owner}/{repo}/actions/runs/{runId}/rerun-failed-jobs"}</code></div>

```python github_actions_rerun_failed_jobs.py theme={null}
from charter.packs import github

result = await github.actions_rerun_failed_jobs.ainvoke({"owner": ..., "repo": ..., "runId": ...})
```

<Note>
  Requires `repo`, `read:user`.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                         | Type      | Description                                                                              |
  | ------------------------------------------------------------- | --------- | ---------------------------------------------------------------------------------------- |
  | `owner` <span className="required" title="required">\*</span> | `string`  | The account owner of the repository. The name is not case sensitive.                     |
  | `repo` <span className="required" title="required">\*</span>  | `string`  | The name of the repository without the `.git` extension. The name is not case sensitive. |
  | `runId` <span className="required" title="required">\*</span> | `integer` | The ID of the workflow run.                                                              |
</div>

## Body

<div className="reference-table">
  | Field                | Type      | Description                                     |
  | -------------------- | --------- | ----------------------------------------------- |
  | `enableDebugLogging` | `boolean` | Whether to enable debug logging for the re-run. |
</div>
