repos
Create a GitHub Enterprise Cloud Pages site
Configures a GitHub Enterprise Cloud Pages site. For more information, see "About GitHub Pages."
The authenticated user must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission.
OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.
post/repos/{owner}/{repo}/pages
Path parameters
ownerstring required
The account owner of the repository. The name is not case sensitive.
repostring required
The name of the repository without the .git extension. The name is not case sensitive.
Request body
Response
Response
Example response
{
"url": "https://api.github.com/repos/github/hello-world/pages",
"status": "built",
"cname": "example.com",
"protected_domain_state": "pending",
"html_url": "https://example.com",
"build_type": "legacy",
"public": true,
"https_certificate": {
"state": "approved",
"description": "Certificate is approved",
"domains": [
"example.com",
"www.example.com"
]
},
"https_enforced": true
}