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. |
| boolean | When set to The default value is |
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 | boolean | When set to The default is |
| 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. |
| 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. |
| required when | string | The package type (docker, maven, etc.). |
| required when | array | An array of objects specifying Release Bundles by name and version. |
| optional | string | The source project key. |
| required when | string | The name of the source Release Bundle. |
| required when | string | The source Release Bundle version. |
| required when | string | The source repository key. |
| optional | object | Defines sources to include or exclude in the Release Bundle version. Filters are used for Release Bundle patching. |
| optional | array:object | If defined, only those artifacts/packages from the defined
A single Regular expressions and character classes are not supported. |
| optional | array:object | If defined, only those artifacts/packages from the defined
A single Regular expressions and character classes are not supported. |
Warning
Both include and exclude filters can be used in the same request, but an error is generated If there is a conflict between them.
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. |
| boolean | Whether this is a draft Release Bundle version. |
| string | The tag assigned to the Release Bundle version, if any. |
| string | The timestamp of 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",
"draft": "false",
"created": "2025-04-29T14:17:21.587Z",
"tag": "nightly"
}Response Body (dry run):
A successful response for a dry run 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. |
| boolean | Whether this is a draft Release Bundle version. |
| string | The tag assigned to the Release Bundle version, if any. |
| object | The artifacts contained in the Release Bundle as generated by the dry run. |
| string | The full path of the artifact. |
| string | The SHA256 checksum of the artifact. |
| string | The package type of the artifact (for example, Maven, Docker). |
| string | The package name of the artifact. |
| string | The package version of the artifact. |
| integer | The size of the artifact in bytes. |
| object | Summary information about the artifacts in the Release Bundle. |
| integer | The total number of artifacts in the Release Bundle. Note: The response is limited to a maximum of 1000 artifacts. |
| integer | The total size of the Release Bundle in bytes. |
Sample Response (dry run):
{
"repository_key": "release-bundles-v2",
"release_bundle_name": "Multi-Bundle",
"release_bundle_version": "3.0.0",
"artifacts": [
{
"path": "release-bundles-v2/bundle-9567994892/v-9751670631/artifacts/maven/org/pom/test/multi1/1.1/multi1-1.1-sources.jar",
"sha256": "ddf2f7b01600275ab94084db143d4f14b9d73f224b0f35a8f93d378138c60ff6",
"package_type": "maven",
"package_name": "org.pom.test:multi1",
"package_version": "1.1",
"size": 829
},
{
"path": "release-bundles-v2/bundle-9567994892/v-9751670631/artifacts/maven/org/pom/test/multi1/1.1/multi1-1.1-tests.jar",
"sha256": "04b8e7ec79cea1b28a3b54abce8aedc6a5649a58eeaf53ffd327b4db17e791c1",
"package_type": "maven",
"package_name": "org.pom.test:multi1",
"package_version": "1.1",
"size": 1068
},
{
"path": "release-bundles-v2/bundle-9567994892/v-9751670631/artifacts/maven/org/pom/test/multi1/1.2/multi1-1.2.jar",
"sha256": "0bd5d1e46180436132a86d3d3ec9ddfd7ab0023ac4648f4448fde6e41fffae54",
"package_type": "maven",
"package_name": "org.pom.test:multi1",
"package_version": "1.2",
"size": 1043
}
],
"summary": {
"artifact_count": 3,
"total_size": 2940
}
}Additional examples:
For additional examples, click here.
Status Codes:
Code | Meaning | Description |
|---|---|---|
200 | Submitted (async) | The creation request was submitted successfully. [when performing a dry run] The dry run was completed 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. |