Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

BUG when creating a private playlist via web api

Solved!

BUG when creating a private playlist via web api

Hi guys im using the web api to create private playlist for my user, im trying this:
curl --location 'https://api.spotify.com/v1/users/{user}/playlists' \
--header 'Authorization: Bearer {token} \
--header 'Content-Type: application/json' \
--data '{
"name": "New Playlist test private",
"description": "New playlist description",
"public": false
}'
and the api response as:
{"collaborative":false,"description":"New playlist description","external_urls":{"spotify":"}"},"followers":{"href":null,"total":0},"href":"https://api.spotify.com/v1/playlists/{id}","id":"{id}","images":[],"primary_color":null,"name":"New Playlist test private","type":"playlist","uri":"spotify:playlist:{id}","owner":{"href":"https://api.spotify.com/v1/users/{userid}","id":"{id}","type":"user","uri":"spotify:user:{user}","display_name":null,"external_urls":{"spotify":"https://open.spotify.com/user/{useroid}"}},"public":false,"snapshot_id":"{snapshot}","tracks":{"limit":100,"next":null,"offset":0,"previous":null,"href":"https://api.spotify.com/v1/playlists/{user-id}/tracks","total":0,"items":[]}}
so as we can see the response says public= false so in theory the playlist should be private but when i see in the ui, the playlist is public, please I need help

Reply

Accepted Solutions
Marked as solution

Hi @LewisRengifo 

The Playlists reference pages reads: "Note that the public attribute does not refer to access control, modifying access is currently not possible through the WebAPI, so anyone with the link to the playlist can access it unless it’s made private through for instance the desktop client."

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

View solution in original post

2 Replies
Marked as solution

Hi @LewisRengifo 

The Playlists reference pages reads: "Note that the public attribute does not refer to access control, modifying access is currently not possible through the WebAPI, so anyone with the link to the playlist can access it unless it’s made private through for instance the desktop client."

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Really appreciate your help @Ximzend! will mark this as accept as solution!

Suggested posts

Type a product name