curl -X PATCH https://api.60db.ai/songs/song-550e8400 \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{"liked": true}'
await client.music.update('song-550e8400', { liked: true });
client.music.update('song-550e8400', liked=True)
{
"success": true,
"data": {}
}Music
Update Song
Mark a song as liked or played
PATCH
/
songs
/
:id
curl -X PATCH https://api.60db.ai/songs/song-550e8400 \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{"liked": true}'
await client.music.update('song-550e8400', { liked: true });
client.music.update('song-550e8400', liked=True)
{
"success": true,
"data": {}
}Update song flags (liked, played). At least one field is required.
Request
Headers
string
required
Bearer token with your API key
Path Parameters
string
required
Song UUID
Body
boolean
Mark as liked (true/false)
boolean
Mark as played (true only; used to track play history)
Response
boolean
True on success
object
Updated Song object
Example
curl -X PATCH https://api.60db.ai/songs/song-550e8400 \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{"liked": true}'
await client.music.update('song-550e8400', { liked: true });
client.music.update('song-550e8400', liked=True)