create_playlist
Create a new empty private playlist for your Spotify account. Provide a name and optional description to get the playlist ID, name, and URL.
Instructions
Create a new empty private playlist for the current user.
Parameters
name : str Display name for the new playlist. description : str, optional Short description shown in Spotify clients (default: empty string).
Returns
dict
Keys: id, name, url.
Raises
ValueError
If name is blank.
spotipy.SpotifyException
Propagated if the Spotify API returns a non-2xx response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||