repos
Create a GitHub Enterprise Server Pages site
Configures a GitHub Enterprise Server Pages site. For more information, see "About GitHub Pages."
To use this endpoint, you must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission. A token with the repo scope or Pages write permission is required. GitHub Apps must have the administration:write and pages:write permissions.
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
}