Description: Creates a new Release Bundle v2, uniquely identified by a combination of repository key, name, and version. For more information, see Understanding Release Bundles v2.
You can create a Release Bundle version using one or a combination of the following source types:
AQL
Artifacts
Packages
Builds
Release Bundles
Tip
To see examples of each source type, click here.
Since: 7.63.2
Usage:POST /lifecycle/api/v2/release_bundle
Query Parameters (optional):
Parameter | Type | Description |
|---|---|---|
| string | Release Bundles repository identifier that identifies where a Release Bundle version resides. If this parameter and the |
| string | Project key used to determine the Release Bundles repository. By convention, each project may contain only one Release Bundles system repository with the name ImportantYou must specify either the |
| boolean | Determines whether the operation should be asynchronous ( The default value is |
| boolean | Determines whether the creation operation stops immediately when a validation error occurs:
NoteFor details about supported errors, see Release Bundle v2 Creation Errors Collected by System. |
Request Header:
Parameter | Type | Description |
|---|---|---|
| string | The name of the GPG key pair configured in the JFrog platform to be used for signing the Release Bundle version. If no key is specified, Artifactory uses a default key named |
Note
See Create Key Pair for instructions about creating the key pair in Artifactory.
If the Release Bundle is intended for distribution using JFrog Distribution, you must propagate the key pair from Artifactory to the Distribution Edge nodes. For more information, see Propagate Public Signing Key.
The creation and distribution action will fail if the signing key has expired.
Consumes: application/json
Request Body Parameters:
Parameter | Required | Type | Description |
|---|---|---|---|
| required | string | Name of the Release Bundle. Must consist only of letters, digits, underscores, periods, and hyphens, and must begin with a letter, digit, or underscore. Limited to 255 characters. |
| required | string | Release Bundle version. Must consist only of letters, digits, underscores, periods, hyphens, and the plus sign (+). Limited to 255 characters. |
| optional | string | The tag to apply to the Release Bundle version. The tag may contain alphanumeric characters, dashes (-), underscores (_), and periods (.). It should not contain spaces or special characters (@, #, etc.). The maximum length is 128 characters. |
| required | array | An array of source objects that define the contents of the Release Bundle. The structure of each object depends on its |
| required | string | Describes one or more source types for the contents of the Release Bundle, including:
NoteThe A workaround for earlier versions is to use |
| required when | string | An AQL query that specifies the artifacts to include. |
| optional | boolean | Used with source_type=aql and source_type=artifacts. Determines whether to skip the resolution of the Docker manifest, which adds the image layers to the Release Bundle. If set to |
| required when | array | An array of objects specifying artifacts by path and checksum. |
| required | string | The repository path of the artifact. |
| optional | string | The SHA256 checksum of the artifact. |
| optional | string | The MD5 checksum of the artifact. |
| required when | array | An array of objects specifying builds by name and number. |
| required when | string | The repository where the build information is stored (for example, artifactory-build-info). |
| required when | string | The name of the build. |
| required when | string | The build number. |
| required when | string | The start date of the build in ISO 8601 format (for example, 2021-10-11T12:23:04.000Z). |
| optional | boolean | Used with When set to The default value is |
| required when | array | An array of objects specifying packages by name, version, and repository key. |
| required when | string | The name of the package. |
| required when | string | The package version. |
| required when | string | The source repository key. |
| optional | string | The source project key. |
| required when | array | An array of objects specifying Release Bundles by name and version. |
| required when | string | The name of the source Release Bundle. |
| required when | string | The source Release Bundle version. |
Response Body:
A successful response includes the following parameters:
Parameter | Type | Description |
|---|---|---|
| string | The repository where the Release Bundle was created. The default location is |
| string | The name of the newly created Release Bundle. |
| string | The version of the newly created Release Bundle. |
| string | The tag assigned to the Release Bundle version, if any. |
| string | The timestamp for when creation was initiated in ISO 8601 format. |
Sample Response:
{
"repository_key": "release-bundles-v2",
"release_bundle_name": "multiRB",
"release_bundle_version": "1.0.3",
"created": "2025-04-29T14:17:21.587Z",
"tag": "nightly"
}For additional examples, click here.
Status Codes:
Code | Meaning | Description |
|---|---|---|
200 | Submitted (async) | The creation request was submitted successfully. |
201 | Created (sync) | The Release Bundle version was created successfully. |
400 | Bad Request | The request body is malformed, a required parameter is missing, or the AQL is invalid. |
401 | Bad Credentials | Authentication failed. A valid token is required. |
403 | Permission Denied | The user does not have write permissions for the target repository. |
404 | Not Found | A specified resource (source artifact, build, package, or repository) could not be found. |
409 | Already Exists | A Release Bundle with the same name and version already exists in the target repository. |