Description: Binds a specific package version with the specified application. A specific package version can be bound to only one application.
Since: AppTrust 1.16.4
Usage: POST https://{{artifactory-host}}/apptrust/api/v1/applications/{{application_key}}/packages
Consumes: application/json
Request Body:
Property | Required/Optional | Type | Description |
|---|---|---|---|
| required | string | The package type (for example, |
| required | string | The package name. |
| required | string | The package version. |
Response Body:
Property | Type | Description |
|---|---|---|
| string | The key of the application to which the package has been bound (associated). |
| string | The package type (for example, |
| string | The package name. |
| string | The package version. |
| string | The timestamp of when the binding operation was performed (ISO 8601 format). |
| string | The user who performed the binding operation. |
Sample Request:
POST 'https://{host}.jfrog.io/apptrust/api/v1/applications/my-web-app/package-versions'
Content-Type: application/json
Authorization: ••••••
{
"package_type": "maven",
"package_name": "com.example:common-utils",
"package_version": "1.2.3"
}
Sample Response:
{
"application_key": "my-web-app",
"package_type": "maven",
"package_name": "com.example:common-utils",
"package_version": "1.2.3",
"bound_at": "2025-06-04T20:30:00Z",
"bound_by": "user@example.com"
}
Status Codes:
Code | Description |
|---|---|
201 | Success |
400 | Bad Request |
401 | Bad Credentials |
403 | Permission Denied |
404 | Not Found |
409 | Conflict |