Browse API

Deploy an App

Create a pinned deployment from the configured source or a verified rollback SHA.

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

Request

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

{}

An account with app.operate and access to the App can create a deployment of the App's configured source. The body accepts optional source_sha only for a rollback: it must be a full 40-character reachable Git SHA, requires both app.write and app.operate, and the App's deployment trigger must first be disabled. The App must have at least one unit. The route verifies the chosen source, then returns {deployment_id, deployment_number}; it does not mean startup or health checks have succeeded. Inspect the resulting deployment before repeating an uncertain request, because this route creates another deployment rather than offering an idempotency key.

An unreadable project returns 401; missing app.operate, App access or rollback app.write returns 403; invalid/unreachable SHA, absent unit or invalid source returns 400; a configured deployment trigger blocks rollback with 409. Do not use a task preview as a production deployment. Deploy an App explains source selection and outcome inspection.