---
title: "Retry PR build"
method: POST
path: "/api/v1alpha/watched_branches/{branch}/prs/{number}/retry"
tags: ["PRs"]
---

# Retry PR build

`POST /api/v1alpha/watched_branches/{branch}/prs/{number}/retry`

## Request

- Base URL: `{{ base_url }}`
- URL: `{{ base_url }}/api/v1alpha/watched_branches/{branch}/prs/{number}/retry`
- Auth: none declared

Requests a CI retry for the PR. Invalidates the current batch and triggers a fresh run.

## Path parameters

- `branch` string, required
- `number` integer, required

## Response `200`

Retry requested successfully

## Other responses

- `400`: PR has no batch or had a merge failure
- `401`: Unauthorized
- `403`: Forbidden - requires MANAGE_CI
- `404`: Branch or PR not found

## Changes

- **2026-07-30** `37d6dddb7b5a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hail-is/apis/hail-ci-service/changes/api/v1alpha/watched_branches/:branch/prs/:number/retry/post.md)

---

[API](https://skmtc.dev/hail-is/apis/hail-ci-service.md) - [All operations](https://skmtc.dev/hail-is/apis/hail-ci-service/llms.txt) - [OpenAPI document](https://skmtc.dev/hail-is/apis/hail-ci-service/revisions/a60fc5e80878?raw)
