Update information about a Pages site

Note: The GitHub Pages API contains two additional fields in responses, which developers can preview: html_url and source. To see these two new fields, you must provide a custom media type in the Accept header:

application/vnd.github.mister-fantastic-preview+json

Warning: The API may change without advance notice during the preview period. Preview features are not supported for production use. If you experience any issues, contact your GitHub Enterprise site administrator.

PUT /repos/:owner/:repo/pages

Parameters

Name Type Description
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

{
  "source": "master /docs"
}

Response

Status: 204 No Content