---
title: "Close Run Pull Request"
method: POST
path: "/api/v1/runs/{id}/pull_request/close"
tags: ["Runs"]
---

# Close Run Pull Request

`POST /api/v1/runs/{id}/pull_request/close`

Closes the stored pull request for a run on GitHub.

## Path parameters

- `id` string, required

## Response `200`

Pull request closed

- CloseRunPullRequestResponse — Response body for closing a run pull request.
  - `number` integer, required
  - `html_url` string, uri, required

## Other responses

- `400` — Pull request close does not apply to this run
- `404` — Run or stored pull request record not found
- `502` — GitHub rejected the close request
- `503` — GitHub integration is unavailable on the server

---

[API](https://skmtc.net/fabro-sh/apis/fabro-run-api.md) · [All operations](https://skmtc.net/fabro-sh/apis/fabro-run-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fabro-sh/fabro-run-api/versions/bee030053823/schema)
