curl --fail-with-body -X DELETE "$RAWCHUNKS_API/api/albums/$(jq -nr --arg v "$ID" '$v|@uri')/songs/$(jq -nr --arg v "$SONG_ID" '$v|@uri')"
{
"success": true,
"songId": "<string>"
}Albums
Remove a song from its album
Clear a song’s album association.
DELETE
/
api
/
albums
/
{id}
/
songs
/
{songId}
curl --fail-with-body -X DELETE "$RAWCHUNKS_API/api/albums/$(jq -nr --arg v "$ID" '$v|@uri')/songs/$(jq -nr --arg v "$SONG_ID" '$v|@uri')"
{
"success": true,
"songId": "<string>"
}Use the actual album and song IDs, and check the current association before sending. This clears the song’s album association.
Headers and parameters
string
required
Resource ID.
string
required
Resource ID.
Response (200)
Success.boolean
required
string
required
Errors
Failed JSON responses contain anerror string. Check the HTTP status before reading a successful result. See job handling for interrupted or uncertain submissions.
| Status | Meaning |
|---|---|
400 | Invalid request. |
500 | Request failed. |
curl --fail-with-body -X DELETE "$RAWCHUNKS_API/api/albums/$(jq -nr --arg v "$ID" '$v|@uri')/songs/$(jq -nr --arg v "$SONG_ID" '$v|@uri')"
⌘I