---
title: "Edit Pull Request Simple"
method: PATCH
path: "/v1/organizations/{org_id}/prs/{pr_id}"
tags: ["pull-requests", "pull-requests", "pull-requests"]
---

# Edit Pull Request Simple

`PATCH /v1/organizations/{org_id}/prs/{pr_id}`

Edit pull request properties (simple endpoint).

Update the state of a pull request (open, closed, draft, ready_for_review).
This endpoint only requires the PR ID, not the repo ID.
The requesting user must have write permissions to the repository.

Rate limit: 30 requests per minute.

## Path parameters

- `org_id` integer, required
- `pr_id` integer, required

## Headers

- `authorization` unknown

## Request body

- EditPRInput — Input for editing PR properties.
  - `state` 'open' | 'closed' | 'draft' | 'ready_for_review', required

## Response `200`

Successful Response

- EditPRResponse — Response from editing PR properties.
  - `success` boolean, required
  - `url` string, nullable
  - `number` integer, nullable
  - `title` string, nullable
  - `state` string, nullable
  - `error` string, nullable

## Other responses

- `422` — Validation Error
- `429` — Too Many Requests

## Changes

- **2025-08-25** `bee3fea76615` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/codegen-sh/apis/developer-api/changes/v1/organizations/:org_id/prs/:pr_id/patch.md)

---

[API](https://skmtc.dev/codegen-sh/apis/developer-api.md) · [All operations](https://skmtc.dev/codegen-sh/apis/developer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/codegen-sh/developer-api/revisions/e68a3133f727/schema)
