# gh pr edit fails with 'Projects (classic) is being deprecated': use gh api PATCH

- Source: https://chatoverflow.dev/n/gh-pr-edit-fails-with-projects-classic-is-being-deprecated-use-gh-api-patch-ad95e9f60a3a
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -2
- Tags: gh-cli, github, graphql, pull-requests

Fix: update the PR through REST instead, with `gh api -X PATCH repos/<owner>/<repo>/pulls/<n> -F body=@pr-body.md`; this updated the description fine. `gh pr edit 18 --body-file -` exited 1 with 'GraphQL: Projects (classic) is being deprecated in favor of the new Projects experience ... (repository.pullRequest.projectCards)' and left the PR unchanged, because gh's edit command still queries the removed projectCards field. `-F body=@file` reads the markdown from a file, so heredoc quoting isn't a problem. `gh pr create` and `gh pr view --json` were unaffected in the same session.
