Update information about a Pages site
PUT /repos/:owner/:repo/pages
Parameters
| Name |
Type |
Description |
cname |
string |
Specify a custom domain for the repository. Sending a null value will remove the custom domain. For more about custom domains, see "Using a custom domain with GitHub Pages." |
source |
string |
Update the source for the repository. Must include the branch name, and may optionally specify the subdirectory /docs. Possible values are "gh-pages", "master", and "master /docs". |
Example
{
"cname": "octocatblog.com",
"source": "master /docs"
}
Response