Skip to content

Publish a product

POST
/api/v1/releases/{id}/products/{productId}/publish
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);
}

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.

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.

This operation takes no body. Send none, or an empty object; any other field is a 400.

Media typeapplication/json
Any of:
object
Examplegenerated
{}

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)$/
status
required
string
Allowed values: draft submitted published rejected unpublished discontinued
readiness
required
string
Allowed values: processing ready needs_attention locked
ean
required
string
audio_versions
required
object
key
additional properties
integer
> 0 <= 9007199254740991
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

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"
}