sincecutoff.com
← all changes

GitHub GraphQL API adds the unarchivePullRequest mutation

Introduced 2026-04-15 · score 0.97

HOW TO USE IT

If the pull request is archived, send `unarchivePullRequest` with its node ID. The mutation removes the archived flag but does not reopen or unlock the pull request.

curl -H "Authorization: bearer <TOKEN>" -X POST -d '{"query":"mutation { unarchivePullRequest(input: {pullRequestId: \"<PULL_REQUEST_NODE_ID>\"}) { pullRequest { id } clientMutationId } }"}' https://api.github.com/graphql

WHY THIS HELPS

Unarchive a pull request through the GitHub GraphQL API.

REQUIREMENTS AND LIMITATIONS

  • input (required): `UnarchivePullRequestInput!` argument to `unarchivePullRequest`.
  • pullRequestId (required): `ID!` identifying the pull request to unarchive.
  • clientMutationId: Optional `String` input field; the payload also offers a `clientMutationId` return field.
  • pullRequest: Optional payload field returning the unarchived pull request.
  • Prerequisite: Authenticate to the GraphQL API with a personal access token, GitHub App, or OAuth app; the needed permissions depend on the requested data. Users with the triage role or higher can unarchive pull requests.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card