create Playlist
suspend fun createPlaylist(body: CreatePlaylistRequest): SpotifyApiResponse<SimplifiedPlaylistObject>
Creates a Spotify playlist for the current user.
Return
Wrapped Spotify API response with status code and parsed Spotify payload.
Parameters
body
Request payload object serialized for this endpoint.
suspend fun createPlaylist(userId: String, body: CreatePlaylistRequest): SpotifyApiResponse<SimplifiedPlaylistObject>
Deprecated
Spotify recommends POST /v1/me/playlists. Use createPlaylist(body).
Replace with
createPlaylist(body)Content copied to clipboard
Creates a Spotify playlist for the current user.
Return
Wrapped Spotify API response with status code and parsed Spotify payload.
Parameters
user Id
Spotify user ID.
body
Request payload object serialized for this endpoint.