Create artwork
const url = 'http://localhost:8891/api/v1/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/products/44c8e1f2-3a4b-4c5d-9e60-7f8a9b0c1d2e/artwork';const options = { method: 'POST', headers: { 'idempotency-key': '3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"artwork":[{"artwork_id":"1c2a3b4c-5d6e-4f70-8981-0a1b2c3d4e5f","part":"front_cover","filename":"cover.jpg","content_type":"image/jpeg","byte_size":18874368,"checksum_sha256":"5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5a7b9d1f3a5c7e","source_image_id":"5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8891/api/v1/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/products/44c8e1f2-3a4b-4c5d-9e60-7f8a9b0c1d2e/artwork \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'idempotency-key: 3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17' \ --data '{ "artwork": [ { "artwork_id": "1c2a3b4c-5d6e-4f70-8981-0a1b2c3d4e5f", "part": "front_cover", "filename": "cover.jpg", "content_type": "image/jpeg", "byte_size": 18874368, "checksum_sha256": "5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5a7b9d1f3a5c7e", "source_image_id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e" } ] }'Step 4: under Quick, one front cover is all a plain vinyl product requires, a CD adds its two inside panels (cover_inside_left, cover_inside_right), and a booklet on either medium its twelve panels. A batch returning an upload target per record, exactly as tracks, and the response carries one record per entry in the order you sent them. Artwork belongs to the product, so the accepted parts follow its medium and its artwork_method: Quick names one printed face per part and takes a JPEG or PNG, Designer names one printed sheet and takes a print-ready PDF. A CD's inside panels are 148 × 129.03 mm (1748 × 1524 px at 300 dpi) cut from an image of 2000 to 4000 px a side, uploaded upright and stamped turned 180°. Under Quick every part except front_cover, a CD's two inside panels and a booklet's twelve panels already exists as a generated record and is replaced by what you send (a replaced record keeps the id it already had, so read data[].id rather than assuming the artwork_id you sent), and the spine is always composed and cannot be sent at all. On a product with a booklet, its twelve panels are vinyl_booklet_1 to vinyl_booklet_12 on vinyl and cd_booklet_1 to cd_booklet_12 on a CD, in reading order (1 the front, 12 the back); a vinyl panel is 303.02 × 305.99 mm (3579 × 3614 px at 300 dpi) and a CD panel 123.02 × 124.04 mm (1453 × 1465 px at 300 dpi), each cut from an image of 2000 to 4000 px a side, scaled and centre-cropped to that shape: all twelve are required, each reported as artwork_missing until it arrives, and the booklet composes once the last lands. Under Designer every sheet is created with the product as an empty slot. An entry may name the release artwork pool image its file was made from in source_image_id, such as the photo a face was cropped from, so that image can be cropped again later. 404 on an unknown product; 409 once the product has left draft; 422 on a part invalid for the medium or the method, on a file of the kind the method does not take, and on a source_image_id that is not in this release's pool. The body is strict, the artwork entries included: a key this operation does not define (byteSize for byte_size) is a 400 naming it, never a value quietly dropped. Requires the catalogue:write scope. Full flow: see the minimal path guide.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Example
9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70Example
44c8e1f2-3a4b-4c5d-9e60-7f8a9b0c1d2eHeader Parameters
Section titled “Header Parameters”Example
3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17Unique 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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Artwork part. The accepted set follows the product's artwork_method. Under Quick, vinyl: front_cover · back_cover · spine · vinyl_labels_a · vinyl_labels_b · inner_sleeve_front · inner_sleeve_back · vinyl_booklet_1 to vinyl_booklet_12 on a booklet product (its panels in reading order, 1 the front and 12 the back, each 303.02 × 305.99 mm (3579 × 3614 px at 300 dpi) cut from an image of 2000 to 4000 px a side, all twelve required); CD: front_cover · back_cover · cover_inside_left · cover_inside_right · spine · cd_label · cd_booklet_1 to cd_booklet_12 on a booklet product (its panels in reading order, 1 the front and 12 the back, each 123.02 × 124.04 mm (1453 × 1465 px at 300 dpi) cut from an image of 2000 to 4000 px a side, all twelve required); the spine is always composed and cannot be sent. A CD's cover_inside_left and cover_inside_right are 148 × 129.03 mm (1748 × 1524 px at 300 dpi) cut from an image of 2000 to 4000 px a side, uploaded upright and stamped turned 180°. Under Designer, vinyl: cover · labels · inner_sleeve · booklet (one printed sheet each). Validated against the product's medium and method.
Hex SHA-256 of the exact bytes you will PUT. Any other bytes are refused: by storage when upload.headers carries it as x-amz-checksum-sha256, otherwise by the ingest. Produce it with shasum -a 256 <file>.
The release artwork pool image this file was made from, such as the photo a face was cropped from. It must be in this release's pool, in any status. Omitted, the record has none: a file sent without it replaces the source along with the file.
Example
{ "artwork": [ { "artwork_id": "1c2a3b4c-5d6e-4f70-8981-0a1b2c3d4e5f", "part": "front_cover", "filename": "cover.jpg", "content_type": "image/jpeg", "byte_size": 18874368, "checksum_sha256": "5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5a7b9d1f3a5c7e", "source_image_id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e" } ]}Responses
Section titled “ Responses ”Default Response
object
object
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.
The SHA-256 of the record's file, as declared for its upload, or null when no file has been declared.
Example
{ "data": [ { "id": "1c2a3b4c-5d6e-4f70-8981-0a1b2c3d4e5f", "part": "front_cover", "status": "awaiting_upload", "auto_generated": false, "locked": false, "upload": { "url": "https://uploads.staging.elasticstage.com/uploads/upl_7a1e…?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=…", "method": "PUT", "headers": { "Content-Type": "image/jpeg", "x-amz-checksum-sha256": "XnudHzpcfpsdP1p8nhs9X3qcHjtdf5ocPlp7nR86XH4=" }, "expires_at": "2026-07-29T23:00:00Z" }, "error_code": null, "error_detail": null, "source_image_id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e", "checksum_sha256": "5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5a7b9d1f3a5c7e" } ]}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}