Set Release Artifact
POST/api/v1/catalog/releases/project/:projectIdentifier/version/:version/artifact
This service message allows creation of a release artifact.
Request
Path Parameters
Project identifier (ID or name)
Header Parameters
- application/json
Body
required
Possible values: [file, docker_image, rpm, deb]
Default value: file
Default value: false
Default value: true
Whether to trigger an SBOM scan for this artifact after upload. Defaults to true.
Package version for RPM/DEB artifact types (e.g. "1.2.3-4")
Total file size in bytes. For FILE artifacts, when provided and above the multipart threshold, the response returns multipart upload fields instead of a single uploadUrl.
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"
}
]
}