<svgxmlns="http://www.w3.org/2000/svg"aria-hidden="true"x="0px"y="0px"viewBox="0 0 100 100"width="15"height="15"class="icon outbound"><pathfill="currentColor"d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygonfill="currentColor"points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav><ulclass="sidebar-links"><li><sectionclass="sidebar-group depth-0"><pclass="sidebar-heading open"><span>Playlists</span><!----></p><ulclass="sidebar-links sidebar-group-items"><li><ahref="/SpotifyAPI-NET/web/playlists.html#getuserplaylists"class="sidebar-link">GetUserPlaylists</a></li><li><ahref="/SpotifyAPI-NET/web/playlists.html#getplaylist"class="sidebar-link">GetPlaylist</a></li><li><ahref="/SpotifyAPI-NET/web/playlists.html#getplaylisttracks"class="sidebar-link">GetPlaylistTracks</a></li><li><ahref="/SpotifyAPI-NET/web/playlists.html#createplaylist"class="sidebar-link">CreatePlaylist</a></li><li><ahref="/SpotifyAPI-NET/web/playlists.html#updateplaylist"class="sidebar-link">UpdatePlaylist</a></li><li><ahref="/SpotifyAPI-NET/web/playlists.html#replaceplaylisttracks"class="sidebar-link">ReplacePlaylistTracks</a></li><li><ahref="/SpotifyAPI-NET/web/playlists.html#removeplaylisttracks"class="sidebar-link">RemovePlaylistTracks</a></li><li><ahref="/SpotifyAPI-NET/web/playlists.html#removeplaylisttrack"class="sidebar-link">RemovePlaylistTrack</a></li><li><ahref="/SpotifyAPI-NET/web/playlists.html#addplaylisttracks"class="sidebar-link">AddPlaylistTracks</a></li><li><ahref="/SpotifyAPI-NET/web/playlists.html#addplaylisttrack"class="sidebar-link">AddPlaylistTrack</a></li><li><ahref="/SpotifyAPI-NET/web/playlists.html#reorderplaylist"class="sidebar-link">ReorderPlaylist</a></li></ul></section></li></ul></aside><mainclass="page"><divclass="theme-default-content content__default"><h1id="playlists"><ahref="#playlists"aria-hidden="true"class="header-anchor">#</a> Playlists</h1><h2id="getuserplaylists"><ahref="#getuserplaylists"aria-hidden="true"class="header-anchor">#</a> GetUserPlaylists</h2><blockquote><p>Get a list of the playlists owned or followed by a Spotify user.</p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>userId</td><td>The user's Spotify user ID.</td><td><code>"1122095781"</code></td></tr><tr><td>[limit]</td><td>The maximum number of playlists to return. Default: 20. Minimum: 1. Maximum: 50.</td><td><code>20</code></td></tr><tr><td>[offset]</td><td>The index of the first playlist to return. Default: 0 (the first object)</td><td><code>0</code></td></tr></tbody></table><p>Returns a <ahref="https://developer.spotify.com/web-api/object-model/#playlist-object-simplified"target="_blank"rel="noopener noreferrer">SimplePlaylist<svgxmlns="http://www.w3.org/2000/svg"aria-hidden="true"x="0px"y="0px"viewBox="0 0 100 100"width="15"height="15"class="icon outbound"><pathfill="currentColor"d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygonfill="currentColor"points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> wrapped inside a <ahref="https://developer.spotify.com/web-api/object-model/#paging-object"target="_blank"rel="noopener noreferrer">Paging Object<svgxmlns="http://www.w3.org/2000/svg"aria-hidden="true"x="0px"y="0px"viewBox="0 0 100 100"width="15"height="15"class="icon outbound"><pathfill="currentColor"d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygonfill="currentColor"points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p><p><strong>Usage</strong></p><divclass="language-csharpextra
userPlaylists<spanclass="token punctuation">.</span>Items<spanclass="token punctuation">.</span><spanclass="token function">ForEach</span><spanclass="token punctuation">(</span>playlist <spanclass="token operator">=></span> playlist<spanclass="token punctuation">.</span>Owner<spanclass="token punctuation">.</span>DisplayName<spanclass="token punctuation">)</span><spanclass="token comment">//Who is the owner of the playlist?</span>
</code></pre></div><hr><h2id="getplaylist"><ahref="#getplaylist"aria-hidden="true"class="header-anchor">#</a> GetPlaylist</h2><blockquote><p>Get a playlist owned by a Spotify user.</p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>userId</td><td>The user's Spotify user ID.</td><td><code>"1122095781"</code></td></tr><tr><td>playlistId</td><td>The Spotify ID for the playlist.</td><td><code>"1TtEejT1y4D1WmcOnLfha2"</code></td></tr><tr><td>[fields]</td><td>Filters for the query: a comma-separated list of the fields to return. If omitted, all fields are returned.</td><td><code>"description,uri"</code></td></tr><tr><td>[market]</td><td>An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking.</td><td>"DE"</td></tr></tbody></table><p>Returns a <ahref="https://developer.spotify.com/web-api/object-model/#track-object-full"target="_blank"rel="noopener noreferrer">FullTrack<svgxmlns="http://www.w3.org/2000/svg"aria-hidden="true"x="0px"y="0px"viewBox="0 0 100 100"width="15"height="15"class="icon outbound"><pathfill="currentColor"d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygonfill="currentColor"points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p><p><strong>Usage</strong></p><divclass="language-csharp extra-class"><preclass="language-csharp"><code><spanclass="token class-name">FullPlaylist</span> playlist <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">GetPlaylist</span><spanclass="token punctuation">(</span><spanclass="token string">"1122095781"</span><spanclass="token punctuation">,</span><spanclass="token string">"1TtEejT1y4D1WmcOnLfha2"</span><spanclass="token punctuation">)</span><spanclass="token punctuation">;</span>
</code></pre></div><hr><h2id="getplaylisttracks"><ahref="#getplaylisttracks"aria-hidden="true"class="header-anchor">#</a> GetPlaylistTracks</h2><blockquote><p>Get full details of the tracks of a playlist owned by a Spotify user.</p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>userId</td><td>The user's Spotify user ID.</td><td><code>"1122095781"</code></td></tr><tr><td>playlistId</td><td>The Spotify ID for the playlist.</td><td><code>"1TtEejT1y4D1WmcOnLfha2"</code></td></tr><tr><td>[fields]</td><td>Filters for the query: a comma-separated list of the fields to return. If omitted, all fields are returned.</td><td><code>"description,uri"</code></td></tr><tr><td>[limit]</td><td>The maximum number of tracks to return. Default: 100. Minimum: 1. Maximum: 100.</td><td><code>100</code></td></tr><tr><td>[offset]</td><td>The index of the first object to return. Default: 0 (i.e., the first object)</td><td><code>0</code></td></tr><tr><td>[market]</td><td>An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking.</td><td><code>DE</code></td></tr></tbody></table><p>Returns a <ahref="https://developer.spotify.com/web-api/object-model/#playlist-object-simplified"target="_blank"rel="noopener noreferrer">PlaylistTrack<svgxmlns="http://www.w3.org/2000/svg"aria-hidden="true"x="0px"y="0px"viewBox="0 0 100 100"width="15"height="15"class="icon outbound"><pathfill="currentColor"d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygonfill="currentColor"points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> wrapped inside a <ahref="https://developer.spotify.com/web-api/object-model/#paging-object"target="_blank"rel="noopener noreferrer">Paging Object<svgxmlns="http://www.w3.org/2000/svg"aria-hidden="true"x="0px"y="0px"viewBox="0 0 100 100"width="15"height="15"class="icon outbound"><pathfill="currentColor"d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygonfill="currentColor"points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p><p><strong>Usage</strong></p><divclass="language-csharp extra-class"><preclass="language-csharp"><code>Paging<spanclass="token operator"><</span>PlaylistTrack<spanclass="token operator">></span> playlist <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">GetPlaylistTracks</span><spanclass="token punctuation">(</span><spanclass="token string">"1122095781"</span><spanclass="token punctuation">,</span><spanclass="token string">"1TtEejT1y4D1WmcOnLfha2"</span><spanclass="token punctuation">)</span><spanclass="token punctuation">;</span>
</code></pre></div><hr><h2id="createplaylist"><ahref="#createplaylist"aria-hidden="true"class="header-anchor">#</a> CreatePlaylist</h2><blockquote><p>Create a playlist for a Spotify user. (The playlist will be empty until you add tracks.)</p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>userId</td><td>The user's Spotify user ID.</td><td><code>"1122095781"</code></td></tr><tr><td>playlistName</td><td>The name for the new playlist, for example "Your Coolest Playlist". This name does not need to be unique.</td><td><code>"This is my new Playlist"</code></td></tr><tr><td>[isPublic]</td><td>default true. If true the playlist will be public, if false it will be private. To be able to create private playlists, the user must have granted the playlist-modify-private scope.</td><td><code>true</code></td></tr></tbody></table><p>Returns a <ahref="https://developer.spotify.com/web-api/object-model/#playlist-object-full"target="_blank"rel="noopener noreferrer">FullPlaylist<svgxmlns="http://www.w3.org/2000/svg"aria-hidden="true"x="0px"y="0px"viewBox="0 0 100 100"width="15"height="15"class="icon outbound"><pathfill="currentColor"d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygonfill="currentColor"points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p><p><strong>Usage</strong></p><divclass="language-csharp extra-class"><preclass="language-csharp"><code><spanclass="token class-name">FullPlaylist</span> playlist <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">CreatePlaylist</span><spanclass="token punctuation">(</span><spanclass="token string">"1122095781"</span><spanclass="token punctuation">,</span><spanclass="token string">"This is my new Playlist"</span><spanclass="token punctuation">)</span><spanclass="token punctuation">;</span>
</code></pre></div><hr><h2id="updateplaylist"><ahref="#updateplaylist"aria-hidden="true"class="header-anchor">#</a> UpdatePlaylist</h2><blockquote><p>Change a playlist’s name and public/private state. (The user must, of course, own the playlist.)</p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>userId</td><td>The user's Spotify user ID.</td><td><code>"1122095781"</code></td></tr><tr><td>playlistId</td><td>The Spotify ID for the playlist.</td><td><code>"1TtEejT1y4D1WmcOnLfha2"</code></td></tr><tr><td>[newName]</td><td>The new name for the playlist, for example "My New Playlist Title".</td><td><code>"New Playlistname"</code></td></tr><tr><td>[newPublic]</td><td>If true the playlist will be public, if false it will be private.</td><td>EXAMPLE</td></tr></tbody></table><p>Returns a <code>ErrorResponse</code> which just contains a possible error. (<code>response.HasError()</code> and <code>response.Error</code>)</p><p><strong>Usage</strong></p><divclass="language-csharp extra-class"><preclass="language-csharp"><code><spanclass="token class-name">ErrorResponse</span> response <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">UpdatePlaylist</span><spanclass="token punctuation">(</span><spanclass="token string">"1122095781"</span><spanclass="token punctuation">,</span><spanclass="token string">"1TtEejT1y4D1WmcOnLfha2"</span><spanclass="token punctuation">,</span><spanclass="token string">"New Name"</span><spanclass="token punctuation">,</span><spanclass="token keyword">true</span><spanclass="token punctuation">)</span><spanclass="token punctuation">;</span>
</code></pre></div><hr><h2id="replaceplaylisttracks"><ahref="#replaceplaylisttracks"aria-hidden="true"class="header-anchor">#</a> ReplacePlaylistTracks</h2><blockquote><p>Replace all the tracks in a playlist, overwriting its existing tracks. This powerful request can be useful for replacing tracks, re-ordering existing tracks, or clearing the playlist.</p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>userId</td><td>The user's Spotify user ID.</td><td><code>"1122095781"</code></td></tr><tr><td>playlistId</td><td>The Spotify ID for the playlist.</td><td><code>"1TtEejT1y4D1WmcOnLfha2"</code></td></tr><tr><td>uris</td><td>A list of Spotify track URIs to set. A maximum of 100 tracks can be set in one request.</td><td><code>new List<string> { "1ri6UZpjPLmTCswIXZ6Uq1" }</code></td></tr></tbody></table><p>Returns a <code>ErrorResponse</code> which just contains a possible error. (<code>response.HasError()</code> and <code>response.Error</code>)</p><p><strong>Usage</strong></p><divclass="language-csharp extra-class"><preclass="language-csharp"><code><spanclass="token class-name">ErrorResponse</span> response <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">ReplacePlaylistTracks</span><spanclass="token punctuation">(</span><spanclass="token string">"1122095781"</span><spanclass="token punctuation">,</span><spanclass="token string">"1TtEejT1y4D1WmcOnLfha2"</span><spanclass="token punctuation">,</span><spanclass="token keyword">new</span><spanclass="token class-name">List</span><spanclass="token operator"><</span><spanclass="token keyword">string</span><spanclass="token operator">></span><spanclass="token punctuation">{</span><spanclass="token string">"1ri6UZpjPLmTCswIXZ6Uq1"</span><spanclass="token punctuation">}</span><spanclass="token punctuation">)</span><spanclass="token punctuation">;</span>
</code></pre></div><hr><h2id="removeplaylisttracks"><ahref="#removeplaylisttracks"aria-hidden="true"class="header-anchor">#</a> RemovePlaylistTracks</h2><blockquote><p>Remove one or more tracks from a user’s playlist.</p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>userId</td><td>The user's Spotify user ID.</td><td><code>"1122095781"</code></td></tr><tr><td>playlistId</td><td>The Spotify ID for the playlist.</td><td><code>"1TtEejT1y4D1WmcOnLfha2"</code></td></tr><tr><td>uris</td><td>array of objects containing Spotify URI strings (and their position in the playlist). A maximum of 100 objects can be sent at once.</td><td><code>(example below)</code></td></tr></tbody></table><p>Returns a <code>ErrorResponse</code> which just contains a possible error. (<code>response.HasError()</code> and <code>response.Error</code>)</p><p><strong>Usage</strong></p><divclass="language-csharp extra-class"><preclass="language-csharp"><code><spanclass="token comment">//Remove multiple tracks</span>
</code></pre></div><hr><h2id="removeplaylisttrack"><ahref="#removeplaylisttrack"aria-hidden="true"class="header-anchor">#</a> RemovePlaylistTrack</h2><blockquote><p>Remove one or more tracks from a user’s playlist.</p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>userId</td><td>The user's Spotify user ID.</td><td><code>"1122095781"</code></td></tr><tr><td>playlistId</td><td>The Spotify ID for the playlist.</td><td><code>"1TtEejT1y4D1WmcOnLfha2"</code></td></tr><tr><td>uri</td><td>Spotify URI</td><td><code>new DeleteTrackUri("1ri6UZpjPLmTCswIXZ6Uq1")</code></td></tr></tbody></table><p>Returns a <code>ErrorResponse</code> which just contains a possible error. (<code>response.HasError()</code> and <code>response.Error</code>)</p><p><strong>Usage</strong></p><divclass="language-csharp extra-class"><preclass="language-csharp"><code><spanclass="token comment">//Remove all tracks with the specified URI</span>
</code></pre></div><hr><h2id="addplaylisttracks"><ahref="#addplaylisttracks"aria-hidden="true"class="header-anchor">#</a> AddPlaylistTracks</h2><blockquote><p>Add one or more tracks to a user’s playlist.</p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>userId</td><td>The user's Spotify user ID.</td><td><code>"1122095781"</code></td></tr><tr><td>playlistId</td><td>The Spotify ID for the playlist.</td><td><code>"1TtEejT1y4D1WmcOnLfha2"</code></td></tr><tr><td>uris</td><td>A list of Spotify track URIs to add</td><td><code>new List<string> { "1ri6UZpjPLmTCswIXZ6Uq1" }</code></td></tr><tr><td>[position]</td><td>The position to insert the tracks, a zero-based index</td><td><code>10</code></td></tr></tbody></table><p>Returns a <code>ErrorResponse</code> which just contains a possible error. (<code>response.HasError()</code> and <code>response.Error</code>)</p><p><strong>Usage</strong></p><divclass="language-csharp extra-class"><preclass="language-csharp"><code><spanclass="token class-name">ErrorResponse</span> response <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">AddPlaylistTracks</span><spanclass="token punctuation">(</span><spanclass="token string">"1122095781"</span><spanclass="token punctuation">,</span><spanclass="token string">"1TtEejT1y4D1WmcOnLfha2"</span><spanclass="token punctuation">,</span><spanclass="token keyword">new</span><spanclass="token class-name">List</span><spanclass="token operator"><</span><spanclass="token keyword">string</span><spanclass="token operator">></span><spanclass="token punctuation">{</span><spanclass="token string">"1ri6UZpjPLmTCswIXZ6Uq1"</span><spanclass="token punctuation">}</span><spanclass="token punctuation">)</span><spanclass="token punctuation">;</span>
</code></pre></div><hr><h2id="addplaylisttrack"><ahref="#addplaylisttrack"aria-hidden="true"class="header-anchor">#</a> AddPlaylistTrack</h2><blockquote><p>Add one or more tracks to a user’s playlist.</p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>userId</td><td>The user's Spotify user ID.</td><td><code>"1122095781"</code></td></tr><tr><td>playlistId</td><td>The Spotify ID for the playlist.</td><td><code>"1TtEejT1y4D1WmcOnLfha2"</code></td></tr><tr><td>uri</td><td>A Spotify Track URI</td><td><code>"1ri6UZpjPLmTCswIXZ6Uq1"</code></td></tr><tr><td>position</td><td>The position to insert the tracks, a zero-based index</td><td><code>10</code></td></tr></tbody></table><p>Returns a <code>ErrorResponse</code> which just contains a possible error. (<code>response.HasError()</code> and <code>response.Error</code>)</p><p><strong>Usage</strong></p><divclass="language-csharp extra-class"><preclass="language-csharp"><code><spanclass="token class-name">ErrorResponse</span> response <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">AddPlaylistTrack</span><spanclass="token punctuation">(</span><spanclass="token string">"1122095781"</span><spanclass="token punctuation">,</span><spanclass="token string">"1TtEejT1y4D1WmcOnLfha2"</span><spanclass="token punctuation">,</span><spanclass="token string">"1ri6UZpjPLmTCswIXZ6Uq1"</span><spanclass="token punctuation">)</span><spanclass="token punctuation">;</span>
</code></pre></div><hr><h2id="reorderplaylist"><ahref="#reorderplaylist"aria-hidden="true"class="header-anchor">#</a> ReorderPlaylist</h2><blockquote><p>Reorder a track or a group of tracks in a playlist.
More Info: <ahref="https://developer.spotify.com/web-api/reorder-playlists-tracks/"target="_blank"rel="noopener noreferrer">Reorder-Playlist<svgxmlns="http://www.w3.org/2000/svg"aria-hidden="true"x="0px"y="0px"viewBox="0 0 100 100"width="15"height="15"class="icon outbound"><pathfill="currentColor"d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygonfill="currentColor"points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>userId</td><td>The user's Spotify user ID.</td><td><code>"1122095781"</code></td></tr><tr><td>playlistId</td><td>The Spotify ID for the playlist.</td><td><code>"1TtEejT1y4D1WmcOnLfha2"</code></td></tr><tr><td>rangeStart</td><td>The position of the first track to be reordered.</td><td><code>2</code></td></tr><tr><td>insertBefore</td><td>The position where the tracks should be inserted.</td><td><code>0</code></td></tr><tr><td>[rangeLength]</td><td>The amount of tracks to be reordered. Defaults to 1 if not set.</td><td><code>2</code></td></tr><tr><td>[snapshotId]</td><td>The playlist's snapshot ID against which you want to make the changes.</td><td>``</td></tr></tbody></table><p>Returns a <code>Snapshot</code>-Object which contains the property <code>String SnapshotId</code></p><p><strong>Usage</strong></p><divclass="language-csharp extra-class"><preclass="language-csharp"><code><spanclass="token class-name">Snapshot</span> snapshot <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">ReorderPlaylist</span><spanclass="token punctuation">(</span><spanclass="token string">"1122095781"</span><spanclass="token punctuation">,</span><spanclass="token string">"1TtEejT1y4D1WmcOnLfha2"</span><spanclass="token punctuation">,</span><spanclass="token number">2</span><spanclass="token punctuation">,</span><spanclass="token number">0</span><spanclass="token punctuation">,</span><spanclass="token number">2</span><spanclass="token punctuation">)</span><spanclass="token punctuation">;</span>