Environment Promotion
Builder includes an approval-gated promotion workflow for moving projects between environments.
Promotion flow
development ──► staging ──► productionEach transition requires:
- A promotion request
- An approval from a user with the appropriate role
- An execution that deploys to the target environment
Full rollback is available at any point.
Request a promotion
bash
POST /promotion/request
{
"project_name": "customer-portal",
"from_env": "development",
"to_env": "staging",
"notes": "All tests passing (87% coverage), QA sign-off received"
}Approve
Requires lead, admin, or super_admin role:
bash
POST /promotion/approve
{ "request_id": "prm_x1y2z3", "notes": "Approved for staging" }Execute
bash
POST /promotion/execute
{ "request_id": "prm_x1y2z3" }Rollback
bash
POST /promotion/rollback
{ "project_name": "customer-portal", "environment": "staging" }Rollback redeploys the previous version and records the rollback event in the promotion history.
Check readiness before requesting
bash
POST /promotion/check
{ "project_name": "customer-portal", "to_env": "staging" }Returns a readiness report — CTQ score, test coverage, open checkpoints, and any blocking issues.
View promotion history
bash
GET /promotion/status
GET /promotion/environments