---
title: "Execute Deployment Promotion"
method: POST
path: "/internal/deployments/{deployment_id}/execute-promotion"
tags: ["internal"]
---

# Execute Deployment Promotion

`POST /internal/deployments/{deployment_id}/execute-promotion`

## Request

- Base URL: `https://api.mengi.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mengi.cloud/internal/deployments/{deployment_id}/execute-promotion`
- Auth: none declared. Required headers: `x-service-token`

Execute deployment promotion (internal, called by worker).

This endpoint is called by the worker to perform the actual promotion:
- Copy configuration from source deployment
- Copy secrets
- Generate values.yaml
- Sync to Git
- Update deployment status

## Path parameters

- `deployment_id` string, uuid, required

## Headers

- `x-service-token` string, required

## Request body

- ExecutePromotionRequest: Request to execute deployment promotion (worker calls this).
  - `source_deployment_id` string, uuid, required
  - `target_cluster_id` string, uuid, required
  - `delete_source` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
