Hanzo AI
OpenapiPlatform

Replace projects

Renames a project. It rewrites `partOf` on every declaration that names the project, in one commit to `hanzoai/universe`.

PUT /v1/platform/projects/{project}

Addresshttps://api.hanzo.ai/v1/platform/projects/{project}
MethodPUT
Operationput_platform_projects_by_project
AuthAuthorization: Bearer $HANZO_API_KEY

Renames a project.

It rewrites partOf on every declaration that names the project, in one commit to hanzoai/universe. 409 when the new name is already a project: fold into it with DELETE /v1/platform/projects/{project}?into=. mode as for create.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
projectpathstringyesProject is the project to rename, from the path.
modebodystringMode is branch (the default) or commit.
namebodystringName is its new name, which no app may already name.
orgbodystringOrg names the project's owner, defaulting to the caller's own scope.
projectbodystringProject is the project to rename, from the path.

Response

StatusBodyMeaning
200platform.projectWriteok
defaultproblem-detailsrefused

200 body — 11 fields.

FieldInTypeAlwaysDescription
commitbodystringCommit is the sha the change created, "" when nothing had to move.
livebodybooleanLive says whether the generator will see it: true only on main.
modebodystringMode is branch (a review; nothing deploys) or commit (main).
movedbodyplatform.relabel[]Moved are the declarations whose partOf moved, and from what.
moved[].frombodystring
moved[].namebodystring
moved[].orgbodystring
moved[].tobodystring
projectbodystringProject is the project the change leaves the moved apps in.
refbodystringRef is the branch the change was pushed to, main for a commit.
reviewbodystringReview is where to open the pull request for a branch.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Platform API · All Hanzo APIs · Interactive reference

How is this guide?

On this page