replace_playlist_items
Replace the contents of a Spotify playlist with a new set of URIs, discarding existing items. A preview shows what will be lost; an empty list clears the playlist.
Instructions
Replace a playlist's entire contents with a new list of URIs — the existing items are discarded. The preview shows what will be lost alongside what replaces it. Pass an empty list to clear the playlist entirely. For more than 100 URIs, the first 100 replace in one call and the rest are appended after.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uris | Yes | ||
| playlist_id | Yes | ||
| confirm_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| result | No | ||
| status | Yes | ||
| preview | No | ||
| next_step | No | ||
| expires_at | No | ||
| confirm_token | No |