Updating PMS Spec

This commit is contained in:
lukehagar
2024-08-25 10:04:43 +00:00
parent f9f9aa9a32
commit 4b9ce8a77e

View File

@@ -2408,7 +2408,7 @@ paths:
tags:
- Library
summary: Get All Libraries
operationId: getLibraries
operationId: get-all-libraries
description: |
A library section (commonly referred to as just a library) is a collection of media.
Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media.
@@ -2426,6 +2426,10 @@ paths:
properties:
MediaContainer:
type: object
required:
- size
- allowSync
- title1
properties:
size:
type: integer
@@ -2482,17 +2486,23 @@ paths:
type: string
example: 322a231a-b7f7-49f5-920f-14c61199cd30
updatedAt:
type: integer
type:
- integer
example: 1556281940
description: Unix epoch datetime
format: int32
example: 1705615634
createdAt:
type: integer
type:
- integer
example: 1556281940
description: Unix epoch datetime
format: int32
example: 1654131312
scannedAt:
type: integer
type:
- integer
example: 1556281940
description: Unix epoch datetime
format: int32
example: 1705615584
content:
type: boolean
example: true
@@ -2587,14 +2597,14 @@ paths:
- Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`.
> **Note**: Filters and sorts are optional; without them, no filtering controls are rendered.
operationId: getLibrary
operationId: get-library-details
parameters:
- name: sectionId
description: the Id of the library to query
description: The id of the library
in: path
schema:
type: number
example: 1000
example: 15
required: true
- name: includeDetails
description: |
@@ -2802,15 +2812,15 @@ paths:
tags:
- Library
summary: Delete Library Section
description: Delate a library using a specific section
description: Delete a library using a specific section id
operationId: deleteLibrary
parameters:
- name: sectionId
description: the Id of the library to query
description: The id of the library
in: path
schema:
type: number
example: 1000
example: 15
required: true
responses:
'200':
@@ -3296,17 +3306,28 @@ paths:
get:
tags:
- Library
summary: Refresh Library
summary: Refresh Metadata Of The Library
description: |
This endpoint Refreshes the library.
operationId: refreshLibrary
This endpoint Refreshes all the Metadata of the library.
operationId: get-refresh-library-metadata
parameters:
- name: sectionId
description: the Id of the library to refresh
description: The id of the library
in: path
schema:
type: number
example: 15
required: true
- name: force
description: Force the refresh even if the library is already being refreshed.
in: query
schema:
type: enum
example: 0
enum:
- 0
- 1
required: false
responses:
'200':
description: The library is refreshing
@@ -9335,10 +9356,10 @@ paths:
- url: 'https://plex.tv/api/v2'
security: []
tags:
- User
- Authentication
summary: Get User SignIn Data
description: Sign in user with username and password and return user data with Plex authentication token
operationId: post-sign-in
operationId: post-users-sign-in-data
parameters:
- name: X-Plex-Client-Identifier
description: |
@@ -9986,18 +10007,21 @@ paths:
- string
- 'null'
renewsAt:
type:
- integer
- 'null'
description: Unix epoch datetime
format: int32
oneOf:
- type:
- integer
example: 1556281940
description: Unix epoch datetime
format: int32
- type: 'null'
endsAt:
type:
- integer
- 'null'
example: 1556281940
description: Unix epoch datetime
format: int32
oneOf:
- type:
- integer
example: 1556281940
description: Unix epoch datetime
format: int32
- type: 'null'
canceled:
type: boolean
example: false