Draft pull requests have been available for over a year now on Github. The REST API documentation shows how to create a pull request in draft state, but not how to mark it as ready to review.
An issue on hub suggests this might work:
hub api -H 'accept: application/vnd.github.shadow-cat-preview+json' \
-XPATCH repos/{owner}/{repo}/pulls/NUMBER -F draft=false
However, it did nothing when I tested it.
How can I do this through the API?