Skip to content

Edit a track

PATCH
/api/v1/releases/{id}/tracks/{trackId}
const url = 'http://localhost:8891/api/v1/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/tracks/7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40';
const options = {
method: 'PATCH',
headers: {
'idempotency-key': '3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: '{"title":"Headlights (Reprise)","explicit":true}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}

Track metadata, any time until a product carrying the track leaves draft. Merge semantics: present fields are replaced, absent fields untouched — defaults apply only at creation, so omitting a field never resets it, and subtitle: null clears it. additional_artists, rightsholders and samples are replaced whole, never merged entry by entry, and cover changes only the fields it sends; primary_artist is its own field, so editing one leaves the other alone. An edit recomposes the generated artwork of every draft Quick product carrying the track: the composed sheets that print the title are redrawn in the background, a sheet whose printed text did not change is left as it is, and until the new sheet lands the product reports it as artwork_sheet_stale or artwork_sheet_composing and cannot publish. A 500 means the edit was saved but the recompose could not be requested: retry with the same Idempotency-Key until it answers 200, since each retry requests it again. 404 on an unknown track; 409 once a product that has left draft pins it; 422 for an audio property in the body, because replacing the audio is the upload route, for an ISRC under an elasticStage registrant that was not issued to your organisation, for an artist credited twice, and for a cover on a track whose song_origin, as this edit leaves it, isn't cover. Requires the tracks: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
trackId
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
7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40
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
title
string
>= 1 characters <= 100 characters
subtitle
Any of:
string
>= 1 characters <= 60 characters
primary_artist
string
>= 1 characters <= 60 characters
additional_artists
Array<object>
<= 20 items
object
name
required
string
>= 1 characters <= 60 characters
rightsholders
Array<object>
<= 20 items
object
name
required
string
>= 1 characters <= 100 characters
type
required
string
Allowed values: Composer / Author Composer Author Publisher
isrc
string
/^[A-Za-z]{2}[A-Za-z0-9]{3}\d{7}$/
explicit
boolean
content_type_classification
string
Allowed values: Musical Work Non-Musical Work Medley
song_origin

Where the song comes from: original, written for this recording; cover, a recording of a song someone else wrote. A track that has never been given one is original.

string
Allowed values: original cover
cover

The song this track covers, for a track whose song_origin is cover; sent for any other origin it is a 422. Each field is optional here, and an edit changes only the fields it sends: null clears the publisher. Publish needs original_song_title and lyrics_and_melody_unchanged.

object
original_song_title
string
>= 1 characters <= 100 characters
lyrics_and_melody_unchanged
boolean
publisher
Any of:
string
>= 1 characters <= 100 characters
samples

The recordings this track samples, in order; any track can carry them. An edit replaces the list whole. Each sample's fields are optional here; publish needs every field of each but publisher.

Array<object>
<= 50 items
object
sampled_track_title
string
>= 1 characters <= 100 characters
sampled_track_artist
string
>= 1 characters <= 60 characters
sampled_recording_owner
string
>= 1 characters <= 100 characters
publisher
Any of:
string
>= 1 characters <= 100 characters
clearance_confirmed
boolean
filename
string
>= 1 characters <= 255 characters
key
additional properties
Example
{
"title": "Headlights (Reprise)",
"explicit": true
}

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)$/
title
required
string
subtitle
required
string | null
primary_artist
required
string
additional_artists
required
Array<object>
object
name
required
string
>= 1 characters <= 60 characters
rightsholders
required
Array<object>
object
name
required
string
>= 1 characters <= 100 characters
type
required
string
Allowed values: Composer / Author Composer Author Publisher
isrc
required
string | null
explicit
required
boolean
content_type_classification
required
string
Allowed values: Musical Work Non-Musical Work Medley
song_origin
required

Where the song comes from: original, written for this recording; cover, a recording of a song someone else wrote. A track that has never been given one is original.

string
Allowed values: original cover
cover
required
Any of:
object
original_song_title
required
string | null
lyrics_and_melody_unchanged
required
boolean | null
publisher
required
string | null
samples
required

The recordings this track samples, in order; empty when it samples none.

Array<object>
object
sampled_track_title
required
string | null
sampled_track_artist
required
string | null
sampled_recording_owner
required
string | null
publisher
required
string | null
clearance_confirmed
required
boolean | null
filename
required
string | null
checksum_sha256
required
string | null
status
required
string
Allowed values: awaiting_upload processing ready failed upload_expired
locked
required
boolean
audio_version
required
integer
> 0 <= 9007199254740991
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
duration_seconds
required
Any of:
integer
> 0 <= 9007199254740991
sampling_rate
required
Any of:
integer
> 0 <= 9007199254740991
bit_depth
required
Any of:
integer
> 0 <= 9007199254740991
lufs
required
number | null
true_peak
required
number | null
preview_url
required
string | null
error_code
required
string | null
error_detail
required
string | null
created_at
required
string format: date-time
updated_at
required
string format: date-time
Example
{
"id": "7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40",
"release_id": "9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70",
"title": "Headlights",
"subtitle": null,
"primary_artist": "Miriam Vale",
"additional_artists": [],
"rightsholders": [],
"isrc": "GBES72600101",
"explicit": false,
"content_type_classification": "Musical Work",
"song_origin": "original",
"cover": null,
"samples": [],
"filename": "01-headlights.wav",
"checksum_sha256": null,
"status": "ready",
"locked": true,
"audio_version": 1,
"upload": null,
"duration_seconds": 227,
"sampling_rate": 44100,
"bit_depth": null,
"lufs": -9.4,
"true_peak": -0.8,
"preview_url": "https://assets.staging.elasticstage.com/previews/7a1e….mp3",
"error_code": null,
"error_detail": null,
"created_at": "2026-07-29T10:04:02Z",
"updated_at": "2026-07-29T10:32:00Z"
}

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