/repos/{owner}/{repo}/pagesUpdate a GitHub Pages site
Replaces configuration information for a repository's GitHub Pages site. Provide at least one of build_type, source, or cname, and include https_enforced when you want to change HTTPS enforcement. The authenticated user must be a repository administrator, maintainer, or have the manage GitHub Pages settings permission.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
GitHub Pages configuration fields; provide at least one of build_type, source, or cname.
A 400 is returned when the request is malformed, a 409 when the Pages site configuration conflicts with the repository state, and a 422 when validation fails or the endpoint has been spammed. Provide at least one of build_type, source, or cname; build_type must be legacy or workflow, and a structured source must include both branch and path.