v22

latestOpenAPI 3.1.0raw.githubusercontent.com2025-10-07253798.6 KB
pull-requests
pull-requests
pull-requests

Edit Pull Request Simple

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.

patch/v1/organizations/{org_id}/prs/{pr_id}

Path parameters

org_idinteger required
pr_idinteger required

Headers

{"stackTrail":"paths:/v1/organizations/{org_id}/prs/{pr_id}:patch:parameters:2:schema","oasType":"schema","type":"unknown","title":"Authorization"}

Request body

state'open' | 'closed' | 'draft' | 'ready_for_review' required

Response

Successful Response

successboolean required
urlstring nullable
numberinteger nullable
titlestring nullable
statestring nullable
errorstring nullable