From 0097be2fc09138582abe1f97feccbb0ee57c78ce Mon Sep 17 00:00:00 2001 From: lukehagar Date: Fri, 2 Jun 2023 20:54:39 +0000 Subject: [PATCH] Updating PMS Spec --- .../plex-media-server-spec-dereferenced.yaml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/static/plex-media-server-spec-dereferenced.yaml b/static/plex-media-server-spec-dereferenced.yaml index 24f9157..3e26376 100644 --- a/static/plex-media-server-spec-dereferenced.yaml +++ b/static/plex-media-server-spec-dereferenced.yaml @@ -1864,6 +1864,47 @@ paths: example: 401 '404': description: In response to a non-existant sectionId. + '/library/metadata/{ratingKey}/children': + get: + tags: + - Library + summary: Get Items Children + description: | + This endpoint will return the children of of a library item specified with the ratingKey. + operationId: getMetadataChildren + parameters: + - name: ratingKey + description: the id of the library item to return the children of. + in: path + schema: + type: number + required: true + responses: + '200': + description: The children of the library item. + '400': + description: 'Bad Request - A parameter was not specified, or was specified incorrectly.' + '401': + description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + content: + application/json: + 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: