apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{owner}/{repo}/pages — GitHub API

GitHub playground

Create a GitHub Pages site

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

2 body fields
  • build_type · optional · string — The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.
  • source · required · object — The source branch and directory used to publish your Pages site.