Description: Creates a new version of an application.
Since: AppTrust 1.16.4
Usage: POST https://{{artifactory-host}}/apptrust/api/v1/applications/{{application_key}}/versions/
Request Headers:
Parameter | Description |
|---|---|
X-JFrog-Signing-Key-Name | The GPG/RSA key-pair name given in Artifactory. If no key is provided, the command creates or uses the default key. |
Query Parameters (optional):
Parameter | Type | Description |
|---|---|---|
| boolean | Determines whether the operation should be asynchronous ( The default value is |
Consumes: application/json
Request Body:
Parameter | Required/Optional | Type | Description |
|---|---|---|---|
| required | string | The application version to be created. NoteIt is recommended to use SemVer formatting to maintain clarity and support CI/CD pipeline automations. |
| required | array:object | The list of sources to include in the version. Sources can include:
ImportantYou must define at least one source. Each source type has at least one required parameter. |
| optional | object | The contents of the AQL query to include in the application version. |
| optional | boolean | Determines whether to skip the resolution of the Docker manifest, which adds the image layers to the application version. The default value is |
| optional | array:object | The list of artifacts to include in the application version. |
| required | string | The path to the artifact. |
| optional | string | The SHA256 of the artifact. |
| optional | array:object | The list of packages to include in the application version. |
| required | string | The package type (for example, Docker). |
| required | string | The package name. |
| required | string | The package version. |
| required | string | The repository key of the package. |
| optional | array:object | The list of builds to include in the application version. |
| optional | string | The repository key of the build. If the key is omitted, the default repository is used ( |
| required | string | The build name. |
| required | string | The build number (run). |
| optional | string | The timestamp (ISO 8601 standard) when the build was created. If this is omitted, the system uses the run, as identified by the |
| optional | boolean | Determines whether to include build dependencies in the application version. The default value is |
| optional | array:object | The list of Release Bundles v2 to include in the application version. |
| required | string | The project key associated with the Release Bundle. |
| required | string | The repository key associated with the Release Bundle. |
| required | string | The Release Bundle name. |
| required | string | The Release Bundle version. |
| optional | array:object | The list of application versions to include in this application version. |
| optional | string | The application key. The default is the same |
| required | string | The application version. |
| optional | string | A tag to be associated with the application version. A tag is a single free text value, limited to 128 characters, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics in between. The tag is usually used to represent the branch. |
Response Body:
Parameter | Type | Description |
|---|---|---|
| string | The unique key of the application for which the version was created. |
| string | The application version (e.g., 1.0.0). |
| string | The user ID who created this application version. |
| string | The ISO 8601 timestamp that indicates when the application version was created. |
| string | The tag associated with the application version, if one was provided during creation. |
| string | The initial status of the application version (for example, |
Sample Request:
POST 'https://{host}.jfrog.io/apptrust/api/v1/applications/my-super-app/versions?async=false'
X-JFrog-Signing-Key-Name: my-signing-key
Content-Type: application/json
Authorization: ••••••
{
"version": "1.2.3",
"sources": {
"artifacts": [
{
"path": "my-repo/path/to/artifact.jar",
"sha256": "a1b2c3d4e5f6..."
}
],
"builds": [
{
"name": "my-app-build",
"number": "15",
"include_dependencies": true
}
],
"versions": [
{
"application_key": "alpha-app",
"version": "2.5.0"
}
]
},
"tag": "stable-release"
}
Sample Response:
{
"application_key": "my-super-app",
"version": "1.2.3",
"created_by": "user@example.com",
"created": "2025-05-30T10:00:00Z",
"tag": "stable-release",
"status": "IN_PROGRESS"
}
Status Codes:
Code | Description |
|---|---|
201 | Success (synchronous) |
202 | Success (asynchronous) |
400 | Bad Request |
401 | Bad Credentials |
403 | Permission Denied |
404 | Not Found |
409 | Conflict |