addTracksToPlaylist
Add tracks or podcast episodes to any Spotify playlist by providing track IDs, episode IDs, or full URIs. Specify the playlist and the items to update.
Instructions
Add tracks or podcast episodes to a Spotify playlist. Accepts Spotify track IDs, episode IDs, or full Spotify URIs (e.g. spotify:episode:xxx).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | Position to insert the items (0-based index) | |
| trackIds | Yes | Array of Spotify IDs or URIs to add. Plain IDs are assumed to be tracks. To add podcast episodes, pass full URIs: spotify:episode:{id}. | |
| playlistId | Yes | The Spotify ID of the playlist |