Edit a track
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);}curl --request PATCH \ --url http://localhost:8891/api/v1/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/tracks/7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'idempotency-key: 3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17' \ --data '{ "title": "Headlights (Reprise)", "explicit": true }'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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Example
9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70Example
7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40Header 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
object
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.
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.
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.
Example
{ "title": "Headlights (Reprise)", "explicit": true}Responses
Section titled “ Responses ”Default Response
object
object
object
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.
The recordings this track samples, in order; empty when it samples none.
object
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
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"}