Hanzo
OpenapiIntegrations

Sets or clears the custom domain (cname) and updates HTTPS enforcement, build…

Sets or clears the custom domain (cname) and updates HTTPS enforcement, build type, or source.

PUT /v1/integrations/github/repos/{repo}/pages

Addresshttps://api.hanzo.ai/v1/integrations/github/repos/{repo}/pages
MethodPUT
Operationput_integrations_github_repos_by_repo_pages
AuthAuthorization: Bearer $HANZO_API_KEY

Sets or clears the custom domain (cname) and updates HTTPS enforcement, build type, or source. ONLY the provided fields are sent to GitHub, so an update never resets a setting the caller did not mention.

Request

7 fields, body application/json (required).

FieldInTypeRequiredDescription
repopathstringyesRepo is the repository, from the :repo path segment.
branchbodystringBranch switches the legacy source branch.
buildTypebodystringBuildType switches the builder: "legacy" or "workflow".
cnamebodystringCNAME is the custom domain.
httpsEnforcedbodybooleanHTTPSEnforced toggles GitHub's enforce-HTTPS bit.
pathbodystringPath is the source directory to pair with Branch: "/" (the default) or "/docs".
repobodystringRepo is the repository, from the :repo path segment.

Response

StatusBodyMeaning
200githubPagesUpdatedOutok

200 body — 2 fields.

FieldInTypeAlwaysDescription
repobodystringRepo is the repository that was updated.
updatedbodybooleanUpdated is always true — a failure is an HTTP error, never this shape.

Failure carries the platform error shape — see Errors.

Examples

hanzo integrations github repos pages replace <repo>

Integrations API · All Hanzo APIs · Interactive reference

How is this guide?

On this page