Skip to content

Replace the tracklist

PUT
/api/v1/releases/{id}/products/{productId}/tracklist
const url = 'http://localhost:8891/api/v1/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/products/44c8e1f2-3a4b-4c5d-9e60-7f8a9b0c1d2e/tracklist';
const options = {
method: 'PUT',
headers: {
'idempotency-key': '3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: '{"sides":[{"label":"A","tracks":["7a1f3c4d-5e6f-4708-9a81-0b1c2d3e4f50","7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40"]},{"label":"B","tracks":["7a205d6e-7f80-4912-9ab1-1c2d3e4f5061"]}]}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}

Put the product's whole running order — every side, in play order, drawn from the release's track pool. The first tracklist with a track on it composes the product's sheets, and after that every new order, one that empties every side included, recomposes the generated artwork that prints the tracklist in the background, with artwork_sheet_stale or artwork_sheet_composing until it lands. A 500 means the order was saved but the compose could not be requested: retry with the same Idempotency-Key until it answers 200, since each retry requests it again. A retry cannot tell whether the order it repeats emptied a product that had tracks, so it asks for the sheets of any draft: retrying an order of empty sides on a product that never had a track composes its sheets early, with an empty tracklist. A replace rather than a merge: the array is the order, so reordering it is how a track moves, and a track you leave out comes off the product (it stays in the release's pool, and any other product carrying it is untouched). A side may be sent empty, as on the create, so a running order can be saved before every side has a track: the product reports each empty side as side_track_count in its validation_errors, which blocks publish until the side is filled. Otherwise the same shape as the sides on the create, but the medium is not in the body — the product already has one and it cannot change — so the rules that follow from it are answered against the stored type: a CD given two sides or an empty side whose label is not its default is a 422 here where the same mistake is a 400 on the create. A vinyl side of 9 to 25 tracks, over its count, is saved too and reported as side_track_count, and a side over its running time, once every track on it is measured, as side_duration; both block publish until the side fits. 400 on a side over 25 tracks. 422 too for a track that is not in this release's pool, for one listed twice, and for two tracks in one slot. 404 on an unknown product and on another organisation's. 409 once the product has left draft: publishing closes the tracklist and pins the audio version of every track on it, so edit the order before you publish, not after. 409 with code CONFLICT for an Idempotency-Key already used for a different body, and with code IDEMPOTENCY_IN_FLIGHT — transient, so retry — for a repeat that lands while the first is still in flight. Requires the catalogue:write scope. Full flow: see the minimal path guide.

id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
Example
9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70
productId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
Example
44c8e1f2-3a4b-4c5d-9e60-7f8a9b0c1d2e
idempotency-key
required
string
>= 1 characters
Example
3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17

Unique key for this write. Retrying with the same key replays the first response instead of creating a duplicate; reusing it for a different body is a 409. Keys are scoped to the operation, so the same key may also be sent to a different endpoint.

Media typeapplication/json
object
sides
required
Array<object>
>= 1 items <= 2 items
object
label
required
string
>= 1 characters <= 8 characters
tracks
required
Array<string>
<= 25 items
Example
{
"sides": [
{
"label": "A",
"tracks": [
"7a1f3c4d-5e6f-4708-9a81-0b1c2d3e4f50",
"7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40"
]
},
{
"label": "B",
"tracks": [
"7a205d6e-7f80-4912-9ab1-1c2d3e4f5061"
]
}
]
}

Default Response

Media typeapplication/json
object
id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
release_id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
medium
required
string
Allowed values: vinyl compact_disc
status
required
string
Allowed values: draft submitted published rejected unpublished discontinued
artwork_method
required

How this product's artwork is prepared. Quick: one image per printed face, everything not supplied is composed for you. Designer: one print-ready PDF per printed sheet, built on the published templates, nothing composed. Chosen when the product is created and fixed for its lifetime.

string
Allowed values: Quick Designer
readiness
required
string
Allowed values: processing ready needs_attention locked
ean
required
string
catalog_no
required
string
booklet
required
boolean
price_category
required
string
Allowed values: low medium high
release_date
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
quantity_limit
required
Any of:
integer
> 0 <= 2147483647
promo_release
required
boolean
territories
required
Array<string>
territories_exclude
required
boolean
explicit
required
boolean
sides
required
Array<object>
object
label
required
string
>= 1 characters <= 8 characters
tracks
required
Array<string>
capacity
required
Array<object>
object
label
required
string
used_seconds
required
Any of:
integer
<= 9007199254740991
limit_seconds
required
integer
> 0 <= 9007199254740991
measured
required
boolean
audio_versions
required
Any of:
object
key
additional properties
integer
> 0 <= 9007199254740991
validation_errors
required
Array<object>
object
code
required
string
detail
required
string
key
additional properties
warnings
required
Array<object>
object
code
required
string
detail
required
string
key
additional properties
artwork
required
Array<object>
object
id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
part
required
string
status
required

Artwork processing lifecycle. composed means the face is printed as part of another face's sheet and has no file of its own — the spine, which is drawn onto the cover wrap. Nothing is owed for it, no upload can be sent to it, and it never blocks publishing; that is what tells it apart from awaiting_upload. ready is reserved for a face whose own artefact exists.

string
Allowed values: awaiting_upload processing ready failed upload_expired composed
auto_generated
required
boolean
locked
required
boolean
upload
required
Any of:
object
url
required
string format: uri
method
required
string
Allowed values: PUT
headers
required
object
key
additional properties
string
expires_at
required
string format: date-time
error_code
required
string | null
error_detail
required
string | null
source_image_id
required
Any of:
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
checksum_sha256
required

The SHA-256 of the record's file, as declared for its upload, or null when no file has been declared.

string | null
model
required
object
status
required
string
Allowed values: pending building ready failed
error
required
Any of:
string
Allowed values: product_missing product_type_missing format_unsupported build_failed
built_at
required
Any of:
string format: date-time
sheets
required
Array<object>
object
id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
sheet
required
string
disc
required
Any of:
integer
> 0 <= 9007199254740991
status
required
string
Allowed values: pending composing ready failed
current
required
boolean
print
required
Any of:
object
url
required
string format: uri
expires_at
required
string format: date-time
previews
required
Any of:
object
key
additional properties
object
url
required
string format: uri
expires_at
required
string format: date-time
composed_at
required
Any of:
string format: date-time
error_code
required
string | null
error_detail
required
string | null
factory
required
object
result
required
Any of:
string
Allowed values: received accepted rejected
received_at
required
Any of:
string format: date-time
decided_at
required
Any of:
string format: date-time
reason
required
Any of:
object
stage
required
string
Allowed values: schema download audio operator artwork
error_code
required
string
Allowed values: message_invalid asset_unavailable asset_link_expired audio_check_failed operator_rejected artwork_not_processed other
error_detail
required
string | null
warnings
required
Array<string>
publish_failure
required
Any of:
object
stage
required
string
Allowed values: render render_validation
error_detail
required
string
failed_at
required
string format: date-time
supersedes
required
Any of:
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
superseded_by
required
Any of:
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
created_at
required
string format: date-time
updated_at
required
string format: date-time
Example
{
"id": "44c8e1f2-3a4b-4c5d-9e60-7f8a9b0c1d2e",
"release_id": "9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70",
"medium": "vinyl",
"status": "published",
"artwork_method": "Quick",
"readiness": "locked",
"ean": "5063933591880",
"catalog_no": "5063933591880",
"booklet": false,
"price_category": "medium",
"release_date": "2026-07-29",
"quantity_limit": null,
"promo_release": false,
"territories": [],
"territories_exclude": false,
"explicit": false,
"sides": [
{
"label": "A",
"tracks": [
"7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40",
"7a1f3c4d-5e6f-4708-9a81-0b1c2d3e4f50"
]
},
{
"label": "B",
"tracks": [
"7a205d6e-7f80-4912-9ab1-1c2d3e4f5061"
]
}
],
"capacity": [
{
"label": "A",
"used_seconds": 428,
"limit_seconds": 1380,
"measured": true
},
{
"label": "B",
"used_seconds": 254,
"limit_seconds": 1380,
"measured": true
}
],
"audio_versions": {
"7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40": 1,
"7a1f3c4d-5e6f-4708-9a81-0b1c2d3e4f50": 1,
"7a205d6e-7f80-4912-9ab1-1c2d3e4f5061": 1
},
"validation_errors": [],
"warnings": [],
"artwork": [
{
"id": "1c2a3b4c-5d6e-4f70-8981-0a1b2c3d4e5f",
"part": "front_cover",
"status": "ready",
"auto_generated": false,
"locked": true,
"upload": null,
"error_code": null,
"error_detail": null,
"source_image_id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"checksum_sha256": "5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5a7b9d1f3a5c7e"
},
{
"id": "9d3b4c5d-6e7f-4801-9a12-3b4c5d6e7f80",
"part": "spine",
"status": "composed",
"auto_generated": true,
"locked": true,
"upload": null,
"error_code": null,
"error_detail": null,
"source_image_id": null,
"checksum_sha256": null
},
{
"id": "9e4c5d6e-7f80-4912-9b23-4c5d6e7f8091",
"part": "back_cover",
"status": "ready",
"auto_generated": true,
"locked": true,
"upload": null,
"error_code": null,
"error_detail": null,
"source_image_id": null,
"checksum_sha256": null
},
{
"id": "9f5d6e7f-8091-4a23-9c34-5d6e7f8091a2",
"part": "vinyl_labels_a",
"status": "ready",
"auto_generated": true,
"locked": true,
"upload": null,
"error_code": null,
"error_detail": null,
"source_image_id": null,
"checksum_sha256": null
},
{
"id": "a06e7f80-91a2-4b34-9d45-6e7f8091a2b3",
"part": "vinyl_labels_b",
"status": "ready",
"auto_generated": true,
"locked": true,
"upload": null,
"error_code": null,
"error_detail": null,
"source_image_id": null,
"checksum_sha256": null
},
{
"id": "a17f8091-a2b3-4c45-9e56-7f8091a2b3c4",
"part": "inner_sleeve_front",
"status": "ready",
"auto_generated": true,
"locked": true,
"upload": null,
"error_code": null,
"error_detail": null,
"source_image_id": null,
"checksum_sha256": null
},
{
"id": "a2890102-b3c4-4d56-9f67-8091a2b3c4d5",
"part": "inner_sleeve_back",
"status": "ready",
"auto_generated": true,
"locked": true,
"upload": null,
"error_code": null,
"error_detail": null,
"source_image_id": null,
"checksum_sha256": null
}
],
"model": {
"status": "ready",
"error": null,
"built_at": "2026-07-29T10:41:35Z"
},
"sheets": [
{
"id": "b3901213-c4d5-4e67-8a78-91a2b3c4d5e6",
"sheet": "cover",
"disc": null,
"status": "ready",
"current": true,
"print": {
"url": "https://assets.staging.elasticstage.com/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/artwork/sheets/b3901213-c4d5-4e67-8a78-91a2b3c4d5e6/1/cover_print.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=…",
"expires_at": "2026-07-29T10:46:37Z"
},
"previews": {
"_cover": {
"url": "https://assets.staging.elasticstage.com/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/artwork/sheets/b3901213-c4d5-4e67-8a78-91a2b3c4d5e6/1/preview_cover.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=…",
"expires_at": "2026-07-29T10:46:37Z"
}
},
"composed_at": "2026-07-29T10:38:12Z",
"error_code": null,
"error_detail": null
},
{
"id": "b4a12324-d5e6-4f78-8b89-a2b3c4d5e6f7",
"sheet": "labels",
"disc": 1,
"status": "ready",
"current": true,
"print": {
"url": "https://assets.staging.elasticstage.com/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/artwork/sheets/b4a12324-d5e6-4f78-8b89-a2b3c4d5e6f7/1/labels_print.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=…",
"expires_at": "2026-07-29T10:46:37Z"
},
"previews": {
"_labels": {
"url": "https://assets.staging.elasticstage.com/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/artwork/sheets/b4a12324-d5e6-4f78-8b89-a2b3c4d5e6f7/1/preview.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=…",
"expires_at": "2026-07-29T10:46:37Z"
}
},
"composed_at": "2026-07-29T10:38:12Z",
"error_code": null,
"error_detail": null
},
{
"id": "b5b23435-e6f7-4089-8c9a-b3c4d5e6f708",
"sheet": "inner_sleeve",
"disc": 1,
"status": "ready",
"current": true,
"print": {
"url": "https://assets.staging.elasticstage.com/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/artwork/sheets/b5b23435-e6f7-4089-8c9a-b3c4d5e6f708/1/inner_sleeve_print.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=…",
"expires_at": "2026-07-29T10:46:37Z"
},
"previews": {
"_inner_sleeve": {
"url": "https://assets.staging.elasticstage.com/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/artwork/sheets/b5b23435-e6f7-4089-8c9a-b3c4d5e6f708/1/preview.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=…",
"expires_at": "2026-07-29T10:46:37Z"
}
},
"composed_at": "2026-07-29T10:38:12Z",
"error_code": null,
"error_detail": null
}
],
"factory": {
"result": "accepted",
"received_at": "2026-07-29T10:41:02Z",
"decided_at": "2026-07-29T10:41:37Z",
"reason": null,
"warnings": []
},
"publish_failure": null,
"supersedes": null,
"superseded_by": null,
"created_at": "2026-07-29T10:20:44Z",
"updated_at": "2026-07-29T10:41:37Z"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}