Promotions API
11 operations. Back to the API overview. Examples use synthetic data.
Promotion package
GET /admin/v1/promotion/package
Needs the permission: config:history.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
config_version | integer | optional | - |
entities | array of object (ConfigcodeEntity) | optional | - |
entities.[]document | any | optional | - |
entities.[]id | string | optional | - |
entities.[]kind | string | optional | - |
environment | string | optional | - |
exported_at | string (date-time) | optional | - |
format | string | optional | - |
redacted | array of string | optional | Redacted lists "kind/id path" of inline credentials the export replaced; such a package cannot be promoted until they are references. |
source | string | optional | - |
{
"config_version": 1,
"entities": [
{
"document": {},
"id": "example-id",
"kind": "example"
}
],
"environment": "example",
"exported_at": "2026-01-15T14:30:00Z",
"format": "example",
"redacted": [
"example"
],
"source": "example"
}Other responses
401Authentication required403Not permitted404Not Found500Internal Server Error503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/promotion/package"Get promotion settings
GET /admin/v1/promotion/settings
Needs the permission: config:history.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
source_environment | any | optional | - |
target_environment | any | optional | - |
variables | any | optional | - |
version | integer | optional | - |
{
"source_environment": {},
"target_environment": {},
"variables": {},
"version": 1
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/promotion/settings"Put promotion settings
PUT /admin/v1/promotion/settings
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
reason | string | optional | - |
variables | array of object (PromoteVariable) | optional | - |
variables.[]name | string | optional | - |
variables.[]note | string | optional | - |
variables.[]production | string | optional | - |
variables.[]test | string | optional | - |
version | integer | optional | - |
{
"reason": "Example text",
"variables": [
{
"name": "example-name",
"note": "example",
"production": "example",
"test": "example"
}
],
"version": 1
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
variables | any | optional | - |
version | integer | optional | - |
{
"variables": {},
"version": 1
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request PUT \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"reason":"Example text","variables":[{"name":"example-name","note":"example","production":"example","test":"example"}],"version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/promotion/settings"List promotions
GET /admin/v1/promotions
Needs the permission: config:history.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
promotions | any | optional | - |
{
"promotions": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/promotions"Create promotion
POST /admin/v1/promotions
A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
evidence | array of object (PromoteEvidence) | optional | - |
evidence.[]at | string (date-time) | optional | - |
evidence.[]detail | string | optional | - |
evidence.[]kind | string | optional | - |
evidence.[]note | string | optional | Note says what was exercised (required for EvTestEnvironment). |
evidence.[]ref | string | optional | Ref is the parallel run ID (EvParallelRun). |
evidence.[]verified | boolean | optional | Verified and Detail are filled by the server: whether Velacent Bridge checked the evidence itself, and what it found. |
note | string | optional | - |
package | any | optional | - |
select | array of string | optional | - |
{
"evidence": [
{
"at": "2026-01-15T14:30:00Z",
"detail": "example",
"kind": "example",
"note": "example",
"ref": "example",
"verified": true
}
],
"note": "example",
"package": {},
"select": [
"example"
]
}Response 201
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"evidence":[{"at":"2026-01-15T14:30:00Z","detail":"example","kind":"example","note":"example","ref":"example","verified":true}],"note":"example","package":{},"select":["example"]}' \
"https://YOUR-CONSOLE-HOST/admin/v1/promotions"Get promotion
GET /admin/v1/promotions/{id}
Needs the permission: config:history.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Response 200
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/promotions/example-id"Apply promotion
POST /admin/v1/promotions/{id}/apply
A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Needs the permission: config:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
acknowledge_warnings | boolean | optional | - |
plan_sha256 | string | optional | - |
reason | string | optional | - |
version | integer | optional | - |
{
"acknowledge_warnings": true,
"plan_sha256": "example",
"reason": "Example text",
"version": 1
}Response 200
{}Other responses
401Authentication required403Not permitted404Not Found500Internal Server Error503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"acknowledge_warnings":true,"plan_sha256":"example","reason":"Example text","version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/promotions/example-id/apply"Decide promotion
POST /admin/v1/promotions/{id}/approve
A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Needs the permission: config:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
acknowledge_warnings | boolean | optional | - |
plan_sha256 | string | optional | - |
reason | string | optional | - |
version | integer | optional | - |
{
"acknowledge_warnings": true,
"plan_sha256": "example",
"reason": "Example text",
"version": 1
}Response 200
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"acknowledge_warnings":true,"plan_sha256":"example","reason":"Example text","version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/promotions/example-id/approve"Cancel promotion
POST /admin/v1/promotions/{id}/cancel
Needs the permission: config:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
acknowledge_warnings | boolean | optional | - |
plan_sha256 | string | optional | - |
reason | string | optional | - |
version | integer | optional | - |
{
"acknowledge_warnings": true,
"plan_sha256": "example",
"reason": "Example text",
"version": 1
}Response 200
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"acknowledge_warnings":true,"plan_sha256":"example","reason":"Example text","version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/promotions/example-id/cancel"Decide promotion
POST /admin/v1/promotions/{id}/reject
A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Needs the permission: config:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
acknowledge_warnings | boolean | optional | - |
plan_sha256 | string | optional | - |
reason | string | optional | - |
version | integer | optional | - |
{
"acknowledge_warnings": true,
"plan_sha256": "example",
"reason": "Example text",
"version": 1
}Response 200
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"acknowledge_warnings":true,"plan_sha256":"example","reason":"Example text","version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/promotions/example-id/reject"Rollback promotion
POST /admin/v1/promotions/{id}/rollback
A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Needs the permission: config:rollback.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
acknowledge_warnings | boolean | optional | - |
plan_sha256 | string | optional | - |
reason | string | optional | - |
version | integer | optional | - |
{
"acknowledge_warnings": true,
"plan_sha256": "example",
"reason": "Example text",
"version": 1
}Response 200
{}Other responses
401Authentication required403Not permitted404Not Found500Internal Server Error503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"acknowledge_warnings":true,"plan_sha256":"example","reason":"Example text","version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/promotions/example-id/rollback"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.