import_playlist
Parse M3U or CSV documents and append their Spotify URIs to a target playlist, skipping tracks already present. Preview with dry_run before writing.
Instructions
Parse an M3U or CSV document (the inverse of export_playlist) and append its Spotify URIs to a target playlist. Pass the document inline via content, or read it from input_path (a regular file inside the configured read roots). URIs already in the playlist are skipped, so a re-run adds nothing. Adds in batches of 100. Use dry_run=true to preview without writing. Result records the document source and the use made of it (consent_note); under 100 new URIs nothing is gated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Document format; auto-detected when omitted | |
| content | No | The M3U or CSV document body, passed inline | |
| dry_run | No | Parse and report what would be added without touching the playlist | |
| input_path | No | Read the document from this local file instead of content | |
| playlist_id | Yes | Target playlist ID, spotify:playlist: URI, or share URL | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |