Music
Stop the draft
DEL
/api/songs/{id}/show/draftGuest area “effects”. Open unless a PIN lock is set and guests aren't allowed this area (
settings.guest.effects); then it needs an unlock token.Stops playing the draft.
Path parameters
idstringrequiredA song id (m…).
Responses
200OKapplication/json
oktruerequired403Locked, or not allowed.application/json
errorstringrequiredWhat went wrong, in a sentence for people.
Request
curl -X DELETE 'http://localhost:8080/api/songs/id/show/draft'const res = await fetch("http://localhost:8080/api/songs/id/show/draft", {
method: "DELETE",
});
const data = await res.json();
console.log(data);import requests
res = requests.delete(
"http://localhost:8080/api/songs/id/show/draft",
)
print(res.json())Response
{
"ok": true
}{
"error": "Settings are locked. Unlock with the PIN in Settings."
}