Description: Promotes the selected Release Bundle version.
Since: 7.63.2
Security: Requires Read and Promote permissions to the target Release Bundle paths; requires Create permissions to target artifact repository paths. (Delete permissions to target artifact repository paths are required when overwrite_existing_artifacts
is set to true
.)
Usage: POST /lifecycle/api/v2/promotion/records/{name}/{version}
Query Parameters (optional):
Field | Type | Description |
---|---|---|
| boolean | Determines whether the operation should be asynchronous (true) or synchronous (false). The default value is “true”. |
Note
See Common Optional Query Parameters for additional query parameters that are available for all Release Lifecycle Management APIs.
Request Header: X-JFrog-Signing-Key-Name
(key-pair name to use for signature creation)
Sample Request:
{ "environment": "QA", "included_repository_keys": [], "excluded_repository_keys": [], "overwrite_existing_artifacts": false }
The request includes the following information:
Property | Description |
---|---|
| Name of the target environment for the promotion. |
| Defines specific repositories to include in the promotion. If this property is left undefined, all repositories (except those specifically excluded) are included in the promotion. Important: If one or more repositories are specifically included, all other repositories are excluded (regardless of what is defined in |
| Defines specific repositories to exclude from the promotion. |
| Determines whether to replace artifacts with the same name but a different checksum that already exist at the promotion targets (true) or interrupt the promotion (false). The default value is false (stop the promotion and display an error message). |
Sample Response:
{ "repository_key": "release-bundles-v2", "release_bundle_name": "Commons-Bundle", "release_bundle_version": "1.0.0", "environment": "QA", "included_repository_keys": [ "commons-qa-generic-local", "commons-qa-docker-local", "commons-qa-maven-local" ], "excluded_repository_keys": [], "overwrite_existing_artifacts": true, "created": "2023-05-19T06:21:44.916Z", "created_millis": 1684477304916 }
Additional information included in the response:
Property | Description |
---|---|
| Timestamp when the new version was created (ISO 8601 standard). |
| Timestamp when the new version was created (in milliseconds). |
Status Codes:
Code | Description |
---|---|
200 | Submitted (asynchronous) |
201 | Promoted (synchronous) |
400 | Bad Request |
404 | Not Found |
409 | Already Exists |