Create a GitHub Enterprise Server Pages site
Configures a GitHub Enterprise Server Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages)."
/repos/{owner}/{repo}/pages- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
Body Params
required source objectrequiredThe source branch and directory used to publish your Pages site.
The source branch and directory used to publish your Pages site.
The repository branch used to publish your site's source files.
The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`
Responses
Response
The Pages site's custom domain
Example: example.com
Whether the Page has a custom 404 page.
Example: false
The web address the Page can be accessed from.
Example: https://example.com
https_certificate Pages Https Certificate objectoptional
Example: Certificate is approved
Array of the domain set and its alternate name (if it is configured)
[
"example.com",
"www.example.com"
]Example: approved
Whether https is enabled on the domain
Example: true
The timestamp when a pending domain becomes unverified.
The state if the domain is verified
Example: pending
Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site.
Example: true
source Pages Source Hash objectoptional
The status of the most recent build of the Page.
Example: built
The API address for accessing this Page resource.
Example: https://api.github.com/repos/github/hello-world/pages
Conflict
Validation failed