Create a GitHub Pages site

POST {{baseUrl}}/repos/:owner/:repo/pages

Request Body

{"source"=>{"branch"=>"<string>", "path"=>"<string>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{&quot;url&quot;:&quot;https://api.github.com/repos/github/developer.github.com/pages&quot;,&quot;status&quot;:&quot;built&quot;,&quot;cname&quot;:&quot;developer.github.com&quot;,&quot;custom_404&quot;:false,&quot;html_url&quot;:&quot;https://developer.github.com&quot;,&quot;source&quot;:{&quot;branch&quot;:&quot;master&quot;,&quot;path&quot;:&quot;/&quot;}}