Skip to main content
PUT
/
releases
/
{id}
/
tracks
/
{trackId}
Update a track (release asset)
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/releases/{id}/tracks/{trackId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "Hit Single",
  "version": "Radio Edit",
  "isrc": "USABC1234567",
  "iswc": "T-123456789-0",
  "duration": 213,
  "lyrics": "<string>",
  "language": "en",
  "displayArtist": "Artist Name",
  "artists": {}
}'
{
  "success": true,
  "data": {
    "title": "Hit Single",
    "version": "Radio Edit",
    "isrc": "USABC1234567",
    "iswc": "T-123456789-0",
    "duration": 213,
    "lyrics": "<string>",
    "language": "en",
    "displayArtist": "Artist Name",
    "artists": {}
  },
  "message": "Track updated successfully"
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/releases/example-id/tracks/example-id', {
  method: 'PUT',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "ref": "#/components/schemas/ReleaseTrackInput"
  })
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string<uuid>
required

Release ID

trackId
string<uuid>
required

Track ID

Body

application/json
title
string
required
Example:

"Hit Single"

displayArtist
string
required
Example:

"Artist Name"

version
string | null
Example:

"Radio Edit"

isrc
string | null
Example:

"USABC1234567"

iswc
string | null
Example:

"T-123456789-0"

duration
number | null
Example:

213

lyrics
string | null
language
string
default:en
Example:

"en"

artists
object

Response

Track updated successfully

success
boolean
Example:

true

data
object
message
string
Example:

"Track updated successfully"