How do you change the base branch of a Pull Request using the GitHub API?


I know that you can change the base branch of a PR via this drop-down menu (see below), but can you change the base branch of a PR via the API?

change base branch via UI