Hanzo AI
OpenapiPlatform

Replace project

Moves an app to a project. It sets the declaration's `partOf` — in its cluster overlay when the overlay sets the key, else in its values file — and…

PUT /v1/platform/apps/{app}/project

Addresshttps://api.hanzo.ai/v1/platform/apps/{app}/project
MethodPUT
Operationput_platform_apps_by_app_project
AuthAuthorization: Bearer $HANZO_API_KEY

Moves an app to a project.

It sets the declaration's partOf — in its cluster overlay when the overlay sets the key, else in its values file — and nothing else. Naming a project nothing names yet creates it. org is the values directory the app lives in; mode as for create.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
apppathstringyesApp is the declaration's name, from the path.
appbodystringApp is the declaration's name, from the path.
modebodystringMode is branch (the default) or commit.
orgbodystringOrg is the values directory the app lives in, defaulting to the caller's own org.
partOfbodystringPartOf is the project to move it to.

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