Hanzo
OpenapiGit

Create a repository over the ZAP transport

Creates a repository in the caller's org and project scope and answers with its record.

POST /v1/git/zap/createRepo

Addresshttps://api.hanzo.ai/v1/git/zap/createRepo
MethodPOST
Operationpost_git_zap_createrepo
AuthAuthorization: Bearer $HANZO_API_KEY

Creates a repository in the caller's org and project scope and answers with its record. name is required and description is optional; project narrows the scope within the org. A name already taken in that scope is a 409 envelope and an invalid name a 400.

A ZAP PROCEDURE, not a REST resource. It answers the bridge's {status, msg, data} envelope rather than the raw view the /v1 route returns — which is a wire shape a typed op cannot produce, and the reason this stays a raw handler — and it calls the SAME core function the REST route calls, so the two transports cannot diverge in behaviour. Org and project scope come from the request identity and NEVER from the body: the body cannot widen the caller's scope. Without a validated org the answer is a 403 envelope.

Request

3 fields, body application/json.

FieldInTypeRequiredDescription
descriptionbodystring
namebodystring
projectbodystring

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo git zap createRepo

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page