Browse API

Change an App host

Human-confirm a pinned host move and its cooldown.

POST/api/v0/projects/<key>/apps/<app>/host

Request

POST https://repopack.com/api/v0/projects/<key>/apps/<app>/host
Authorization: Bearer <token>
Content-Type: application/json

{"host":"new-host"}

Changing a public host requires both app.write and app.operate, and a human confirmation of the exact old/new labels. An unreadable project returns 401; a reader without both permissions returns 403. It may restart the running App; a failed move can roll back to the old host. A successful move starts a seven-day cooldown per App. Within that window the route returns 409 app_host_rename_limited with next_rename_at before asking for confirmation. Invalid label is 400; unchanged, unavailable or changed-since-confirmation host returns 409 (app_host_unchanged, app_host_taken, or app_host_changed). Do not retry a timed-out move until you inspect the action and App; a denied or rolled-back move does not consume the cooldown.