From cc07ea5b683835b0b7a043c6918b448211330159 Mon Sep 17 00:00:00 2001 From: lukehagar Date: Tue, 11 Apr 2023 14:07:43 +0000 Subject: [PATCH] Updating OpenAPI Spec --- static/plex-api-spec-dereferenced.yaml | 1428 ++++++++++++------------ 1 file changed, 714 insertions(+), 714 deletions(-) diff --git a/static/plex-api-spec-dereferenced.yaml b/static/plex-api-spec-dereferenced.yaml index c68c4d2..ee90f74 100644 --- a/static/plex-api-spec-dereferenced.yaml +++ b/static/plex-api-spec-dereferenced.yaml @@ -95,23 +95,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /: get: tags: @@ -245,23 +245,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /activities: get: tags: @@ -310,23 +310,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '/activities/{activityUUID}': delete: tags: @@ -349,23 +349,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /updater/status: get: tags: @@ -380,23 +380,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /updater/check: put: tags: @@ -421,23 +421,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /updater/apply: put: tags: @@ -472,23 +472,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '500': description: If the update process failed to start /butler: @@ -510,23 +510,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 delete: tags: - Butler @@ -541,23 +541,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '/butler/{taskName}': post: tags: @@ -601,23 +601,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 delete: tags: - Butler @@ -654,23 +654,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '404': description: The task was not running /log: @@ -721,23 +721,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 post: tags: - Log @@ -752,23 +752,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /log/networked: get: tags: @@ -784,23 +784,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '403': description: the user was not signed in /security/token: @@ -835,23 +835,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /security/resources: get: tags: @@ -878,23 +878,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '/library/sections/{sectionId}/all': get: tags: @@ -929,23 +929,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '/library/sections/{sectionId}/refresh': get: tags: @@ -968,23 +968,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '/library/sections/{sectionId}/latest': get: tags: @@ -1019,23 +1019,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '/library/sections/{sectionId}/common': get: tags: @@ -1072,23 +1072,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '404': description: In response to a non-existant sectionId. '/library/sections/{sectionId}': @@ -1144,23 +1144,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /library/sections: get: tags: @@ -1181,23 +1181,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /library/hashes: get: tags: @@ -1226,23 +1226,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /library/onDeck: get: tags: @@ -1258,23 +1258,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /hubs: get: tags: @@ -1305,23 +1305,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '/hubs/sections/{sectionId}': get: tags: @@ -1359,23 +1359,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /playlists/all: get: tags: @@ -1410,23 +1410,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /playlists: post: tags: @@ -1482,23 +1482,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '/playlists/{playlistID}': get: tags: @@ -1522,23 +1522,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 delete: tags: - Playlists @@ -1560,23 +1560,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 put: tags: - Playlists @@ -1598,23 +1598,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '/playlists/{playlistID}/items': get: tags: @@ -1646,23 +1646,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 delete: tags: - Playlists @@ -1684,23 +1684,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 put: tags: - Playlists @@ -1737,23 +1737,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /playlists/upload: post: tags: @@ -1794,23 +1794,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /hubs/search: get: tags: @@ -1860,23 +1860,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /hubs/search/voice: get: tags: @@ -1918,23 +1918,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /user: servers: - url: 'https://plex.tv/api/v2' @@ -1951,23 +1951,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /resources: servers: - url: 'https://plex.tv/api/v2' @@ -2074,23 +2074,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /status/sessions: get: tags: @@ -2105,23 +2105,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 /status/sessions/history/all: get: tags: @@ -2136,23 +2136,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 '/:/prefs': get: tags: @@ -2167,23 +2167,23 @@ paths: description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. content: application/json: - schema: null - type: object - properties: - errors: - type: array - items: - type: object - properties: - code: - type: number - example: 1001 - message: - type: string - example: User could not be authenticated - status: - type: number - example: 401 + schema: + type: object + properties: + errors: + type: array + items: + type: object + properties: + code: + type: number + example: 1001 + message: + type: string + example: User could not be authenticated + status: + type: number + example: 401 tags: - name: Activities description: |