From ed45bbf686c1c9d76f3cd4d3f40fa63c9214081c Mon Sep 17 00:00:00 2001 From: Luke Hagar Date: Mon, 10 Apr 2023 09:54:48 -0500 Subject: [PATCH] Update playlist-contents.yaml --- referenced/paths/playlist-contents.yaml | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/referenced/paths/playlist-contents.yaml b/referenced/paths/playlist-contents.yaml index 9ee214eb..e49606fc 100644 --- a/referenced/paths/playlist-contents.yaml +++ b/referenced/paths/playlist-contents.yaml @@ -46,3 +46,38 @@ delete: description: The playlist contents are cleared "401": $ref: "../responses/401.yaml" + +put: + tags: + - Playlists + summary: Adding to a Playlist + description: | + Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. + With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. + operationId: clearPlaylistContent + parameters: + - name: playlistID + description: the ID of the playlist + in: path + schema: + type: number + required: true + - name: uri + description: the content URI for the playlist + in: query + schema: + type: string + example: library://.. + required: true + - name: playQueueID + description: the play queue to add to a playlist + in: query + schema: + type: number + example: 123 + required: true + responses: + "200": + description: Playlist Updated + "401": + $ref: "../responses/401.yaml"