Link Existing Artifact
POST/api/v1/catalog/releases/project/:projectIdentifier/version/:version/artifact/link
Links an existing artifact (already in MinIO or a Docker registry) to a release without re-uploading. This allows multiple releases to reference the same physical artifact.
Request
Path Parameters
Project identifier (ID or name)
Header Parameters
- application/json
Body
required
Project identifier (ID or name)
Release version to link the artifact to
Name for the artifact in this release
Possible values: [file, docker_image, rpm, deb]
Type of artifact being linked
The object key in MinIO/S3 (for file type)
Docker image URL (for docker_image type)
Default value: false
Default value: false
Responses
- 201
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Single-PUT presigned URL. Present for FILE artifacts uploaded via single PUT (small files).
S3 multipart upload ID. Present when the FILE artifact uses multipart upload.
Object key of the artifact in the bucket. Present when the FILE artifact uses multipart upload.
Part size in bytes for multipart upload.
Total number of parts for multipart upload.
urls
object[]
Presigned URLs for all parts. Present when the FILE artifact uses multipart upload.
Part number (1-based)
Presigned URL for uploading this part
{
"artifactId": 0,
"uploadUrl": "string",
"uploadId": "string",
"objectKey": "string",
"partSize": 0,
"partCount": 0,
"urls": [
{
"partNumber": 0,
"url": "string"
}
]
}