apicheats.dev Cheat sheet Raw .md
PATCH

Try PATCH /repos/{owner}/{repo}/pulls/{pull_number} — GitHub API

GitHub playground

Update a pull request

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

5 body fields
  • title · optional · string — The title of the pull request.
  • body · optional · string — The contents of the pull request.
  • state · optional · string — State of this Pull Request. Either `open` or `closed`.
  • base · optional · string — The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.
  • maintainer_can_modify · optional · boolean — Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.