Hanzo AI
OpenapiProvider

Create builds

Requests a Pages rebuild and returns the queued build's status.

POST /v1/provider/github/repos/{repo}/pages/builds

Addresshttps://api.hanzo.ai/v1/provider/github/repos/{repo}/pages/builds
MethodPOST
Operationpost_provider_github_repos_by_repo_pages_builds
AuthAuthorization: Bearer $HANZO_API_KEY

Requests a Pages rebuild and returns the queued build's status. The build is queued AT GITHUB, not completed here, so the answer is 202 Accepted and its status is the one GitHub reported at queue time. 404 when the repository has no Pages site, or when the org's installation was not granted it.

Request

1 field.

FieldInTypeRequiredDescription
repopathstringyesRepo is the repository's short name within the org's installation, with no owner prefix (the owner is server-derived from the grant).

Response

StatusBodyMeaning
202provider.githubPagesBuildOutaccepted
defaultproblem-detailsrefused

202 body — 3 fields.

FieldInTypeAlwaysDescription
repobodystringRepo is the repository the build was queued for.
statusbodystringStatus is GitHub's build state at the moment it was queued ("queued").
urlbodystringURL is GitHub's API URL for the build, for polling it there.

Failure carries the platform error shape — see Errors.

Examples

hanzo provider github repos pages builds <repo>

Provider API · All Hanzo APIs · Interactive reference

How is this guide?

On this page