From fff4e83ca50141b9e8b6678654c0f39adec0b6f3 Mon Sep 17 00:00:00 2001 From: LukeHagar Date: Mon, 10 Apr 2023 14:42:35 +0000 Subject: [PATCH] Apply automatic changes --- plex-api-spec-dereferenced.yaml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/plex-api-spec-dereferenced.yaml b/plex-api-spec-dereferenced.yaml index 3f1665b8..85b62c4d 100644 --- a/plex-api-spec-dereferenced.yaml +++ b/plex-api-spec-dereferenced.yaml @@ -835,6 +835,44 @@ paths: description: The playlist contents are cleared '401': description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + /playlists/upload: + post: + tags: + - Playlists + summary: Upload Playlist + description: | + Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. + operationId: uploadPlaylist + parameters: + - name: path + description: | + absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. + If the `path` argument is a directory, that path will be scanned for playlist files to be processed. + Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. + The GUID of each playlist is based on the filename. + If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. + The GUID of each playlist is based on the filename. + in: query + schema: + type: string + example: /home/barkley/playlist.m3u + required: true + - name: force + description: | + force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. + The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. + in: query + schema: + type: number + enum: + - 0 + - 1 + required: true + responses: + '200': + description: The playlist is uploaded + '401': + description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. tags: - name: Activities description: |