Publish a product
const url = 'http://localhost:8891/api/v1/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/products/44c8e1f2-3a4b-4c5d-9e60-7f8a9b0c1d2e/publish';const options = { method: 'POST', headers: { 'idempotency-key': '3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{}'};
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/publish \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'idempotency-key: 3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17' \ --data '{}'Step 5 — the finale. Hands the product to the factory: status becomes submitted, every track it references is pinned to its current audio_version, and the tracks and artwork are locked. It is not on sale yet. The factory answers minutes to days later, and that answer is what moves the product to published (with the product.available webhook) or to rejected (product.rejected). The factory can change its decision later, so a product can move between published and rejected more than once, keeping its barcode, with a webhook each time: stop selling on product.rejected, even a product already on sale. Until then the answer so far is in the product view's factory object. No webhook fires here: the response already tells you what happened. Warnings never block it. Takes no body — send none, or an empty object; any other field is a 400. 404 on an unknown product; 409 while validation_errors is not empty, once the product has left draft, or for a product type the factory does not manufacture — a CD today, which can be created, edited and composed but not yet published; 422 when the ISRC pool cannot cover the tracklist — publishing draws one code per track that has none, so a pool with nothing left for the current year refuses the whole publish and pins nothing. 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”This operation takes no body. Send none, or an empty object; any other field is a 400.
Responses
Section titled “ Responses ”Default Response
object
object
Example
{ "id": "44c8e1f2-3a4b-4c5d-9e60-7f8a9b0c1d2e", "status": "submitted", "readiness": "locked", "ean": "5063933591880", "audio_versions": { "7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40": 1, "7a1f3c4d-5e6f-4708-9a81-0b1c2d3e4f50": 1, "7a205d6e-7f80-4912-9ab1-1c2d3e4f5061": 1 }}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"}