v22

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

Edit Pull Request

Edit pull request properties (RESTful endpoint).

Update the state of a pull request (open, closed, draft, ready_for_review). This endpoint requires both repo_id and pr_id for RESTful compliance. The requesting user must have write permissions to the repository.

Rate limit: 30 requests per minute.

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

Path parameters

org_idinteger required
repo_idinteger required
pr_idinteger required

Headers

{"stackTrail":"paths:/v1/organizations/{org_id}/repos/{repo_id}/prs/{pr_id}:patch:parameters:3: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