Skip to main content

savePlaylist

Creates a custom playlist when playlist.id is omitted or null, or updates an existing custom playlist for the site. The filter is a non-empty recordings filter, and a new playlist also needs a name; duplicate names may receive a copy suffix. Use updatePlaylistName to rename without resubmitting a filter. Requires recordings edit access.

savePlaylist(
site: Int!
playlist: PlaylistParams!
): Playlist

Arguments​

savePlaylist.site ● Int! non-null scalar​

Site id from sites; the site must be accessible to the current viewer.

savePlaylist.playlist ● PlaylistParams! non-null input​

Custom playlist parameters; omit id to create, or provide an existing custom id to update.

Type​

Playlist object​

Named recordings filter returned by playlistsList or savePlaylist; recommended presets have negative ids and custom site playlists have positive ids.