---
title: "Reruns all failed jobs in a workflow run"
method: POST
path: "/repos/{owner}/{repo}/actions/runs/{run}/rerun-failed-jobs"
tags: ["repository"]
---

# Reruns all failed jobs in a workflow run

`POST /repos/{owner}/{repo}/actions/runs/{run}/rerun-failed-jobs`

## Request

- Base URL: `https://demo.gitea.com/api/v1`
- URL: `https://demo.gitea.com/api/v1/repos/{owner}/{repo}/actions/runs/{run}/rerun-failed-jobs`
- Auth: one of:
  - HTTP basic
  - API key in query parameter `token`
  - API key in query parameter `access_token`
  - API key in header `Authorization`
  - API key in query parameter `sudo`
  - API key in header `Sudo`
  - API key in header `X-GITEA-OTP`

## Path parameters

- `owner` string, required
- `repo` string, required
- `run` integer, required

## Response `201`

APIEmpty is an empty response

## Other responses

- `default`: APIError is error format response

## Changes

- **2026-10-28** `7ef50c4c527f`: 5 info
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `404`
  - removed the non-success response with the status `409`
  - …1 more
- **2026-07-13** `4df6be504c96`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gitea/apis/gitea-api/changes/repos/:owner/:repo/actions/runs/:run/rerun-failed-jobs/post.md)

---

[API](https://skmtc.dev/gitea/apis/gitea-api.md) - [All operations](https://skmtc.dev/gitea/apis/gitea-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitea/apis/gitea-api/revisions/b8e58c32921d?raw)
