Delete an existing album

POST /album/deleteAlbum
application/json

Body Required

  • albumId string Required

    The ID of the album to delete

Responses

  • 200 application/json

    Album deleted successfully

    Hide response attributes Show response attributes object
  • 400 application/json

    Invalid request. The request was malformed or missing required parameters.

    Hide response attribute Show response attribute object
  • Album not found

POST /album/deleteAlbum
curl \
 -X POST https://public-api.joinswsh.com/album/deleteAlbum \
 -H "Content-Type: application/json" \
 -d '{"albumId":"22222222-2222-2222-2222-222222222222"}'
Request examples
{
  "albumId": "22222222-2222-2222-2222-222222222222"
}
Response examples (200)
{
  "data": {
    "message": "Success!"
  },
  "warnings": [
    "Example warning"
  ]
}
Response examples (400)
{
  "message": "Invalid request"
}