/repos/{owner}/{repo}/pagesUpdate information about a GitHub Pages site
Updates GitHub Pages settings for a repository. Provide at least one of build_type, source, or cname; build_type accepts legacy or workflow, and source accepts a branch name with an optional /docs path or an object containing branch and path. The authenticated user must be a repository administrator, maintainer, or have the manage GitHub Pages settings permission.
GitHub Pages settings to update. Include at least one of build_type, source, or cname.
A 400 is returned for a bad request. A 409 indicates a conflict, and a 422 is returned when validation fails or the endpoint has been spammed. The owner and repo path parameters identify the repository; provide at least one of build_type, source, or cname, and use an allowed build_type value or source format.