mirror of
https://github.com/LukeHagar/plex-docs.git
synced 2025-12-06 12:37:45 +00:00
Updating PMS Spec
This commit is contained in:
@@ -2046,8 +2046,9 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- Server
|
- Server
|
||||||
summary: Get Server Identity
|
summary: Get Server Identity
|
||||||
description: Get Server Identity
|
description: This request is useful to determine if the server is online or offline
|
||||||
operationId: getServerIdentity
|
operationId: get-server-identity
|
||||||
|
security: []
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: The Server Identity information
|
description: The Server Identity information
|
||||||
@@ -2070,29 +2071,19 @@ paths:
|
|||||||
version:
|
version:
|
||||||
type: string
|
type: string
|
||||||
example: 1.31.3.6868-28fc46b27
|
example: 1.31.3.6868-28fc46b27
|
||||||
'400':
|
'408':
|
||||||
description: 'Bad Request - A parameter was not specified, or was specified incorrectly.'
|
description: Request Timeout
|
||||||
'401':
|
|
||||||
description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
errors:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
code:
|
code:
|
||||||
type: number
|
type: integer
|
||||||
example: 1001
|
example: 408
|
||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
example: User could not be authenticated
|
example: The server timed out waiting for the request.
|
||||||
status:
|
|
||||||
type: number
|
|
||||||
example: 401
|
|
||||||
/library/hashes:
|
/library/hashes:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
@@ -5524,12 +5515,11 @@ paths:
|
|||||||
get:
|
get:
|
||||||
servers:
|
servers:
|
||||||
- url: 'https://plex.tv/api/v2'
|
- url: 'https://plex.tv/api/v2'
|
||||||
security: []
|
|
||||||
tags:
|
tags:
|
||||||
- Plex
|
- Plex
|
||||||
summary: Get Resources
|
summary: Get Server Resources
|
||||||
description: Get Resources
|
description: Get Plex server access tokens and server connections
|
||||||
operationId: getResources
|
operationId: get-server-resources
|
||||||
parameters:
|
parameters:
|
||||||
- name: X-Plex-Client-Identifier
|
- name: X-Plex-Client-Identifier
|
||||||
description: |
|
description: |
|
||||||
@@ -5541,30 +5531,57 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
example: gcgzw5rz2xovp84b4vha3a40
|
example: gcgzw5rz2xovp84b4vha3a40
|
||||||
required: true
|
required: true
|
||||||
|
- name: X-Plex-Token
|
||||||
|
in: query
|
||||||
|
description: Plex Authentication Token
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
example: CV5xoxjTpFKUzBTShsaf
|
||||||
|
required: true
|
||||||
- name: includeHttps
|
- name: includeHttps
|
||||||
in: query
|
in: query
|
||||||
description: Include Https entries in the results
|
description: Include Https entries in the results
|
||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
|
format: int32
|
||||||
enum:
|
enum:
|
||||||
- 0
|
- 0
|
||||||
- 1
|
- 1
|
||||||
|
example: 1
|
||||||
|
default: 0
|
||||||
- name: includeRelay
|
- name: includeRelay
|
||||||
in: query
|
in: query
|
||||||
description: Include Relay addresses in the results
|
description: |
|
||||||
|
Include Relay addresses in the results
|
||||||
|
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
|
||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
|
format: int32
|
||||||
enum:
|
enum:
|
||||||
- 0
|
- 0
|
||||||
- 1
|
- 1
|
||||||
|
example: 1
|
||||||
|
default: 0
|
||||||
- name: includeIPv6
|
- name: includeIPv6
|
||||||
in: query
|
in: query
|
||||||
description: Include IPv6 entries in the results
|
description: Include IPv6 entries in the results
|
||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
|
format: int32
|
||||||
enum:
|
enum:
|
||||||
- 0
|
- 0
|
||||||
- 1
|
- 1
|
||||||
|
example: 1
|
||||||
|
default: 0
|
||||||
|
- name: Accept
|
||||||
|
in: header
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- application/json
|
||||||
|
- application/xml
|
||||||
|
example: application/json
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: List of Plex Devices. This includes Plex hosted servers and clients
|
description: List of Plex Devices. This includes Plex hosted servers and clients
|
||||||
@@ -5586,6 +5603,20 @@ paths:
|
|||||||
- createdAt
|
- createdAt
|
||||||
- lastSeenAt
|
- lastSeenAt
|
||||||
- provides
|
- provides
|
||||||
|
- ownerId
|
||||||
|
- sourceTitle
|
||||||
|
- publicAddress
|
||||||
|
- accessToken
|
||||||
|
- owned
|
||||||
|
- home
|
||||||
|
- synced
|
||||||
|
- relay
|
||||||
|
- presence
|
||||||
|
- httpsRequired
|
||||||
|
- publicAddressMatches
|
||||||
|
- dnsRebindingProtection
|
||||||
|
- natLoopbackSupported
|
||||||
|
- connections
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
@@ -5594,11 +5625,17 @@ paths:
|
|||||||
productVersion:
|
productVersion:
|
||||||
type: string
|
type: string
|
||||||
platform:
|
platform:
|
||||||
type: string
|
type:
|
||||||
|
- 'null'
|
||||||
|
- string
|
||||||
platformVersion:
|
platformVersion:
|
||||||
type: string
|
type:
|
||||||
|
- 'null'
|
||||||
|
- string
|
||||||
device:
|
device:
|
||||||
type: string
|
type:
|
||||||
|
- 'null'
|
||||||
|
- string
|
||||||
clientIdentifier:
|
clientIdentifier:
|
||||||
type: string
|
type: string
|
||||||
createdAt:
|
createdAt:
|
||||||
@@ -5610,11 +5647,14 @@ paths:
|
|||||||
provides:
|
provides:
|
||||||
type: string
|
type: string
|
||||||
ownerId:
|
ownerId:
|
||||||
type: string
|
description: ownerId is null when the device is owned by the token used to send the request
|
||||||
format: nullable
|
type:
|
||||||
|
- 'null'
|
||||||
|
- integer
|
||||||
sourceTitle:
|
sourceTitle:
|
||||||
type: string
|
type:
|
||||||
format: nullable
|
- 'null'
|
||||||
|
- string
|
||||||
publicAddress:
|
publicAddress:
|
||||||
type: string
|
type: string
|
||||||
accessToken:
|
accessToken:
|
||||||
@@ -5641,6 +5681,14 @@ paths:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
|
required:
|
||||||
|
- protocol
|
||||||
|
- address
|
||||||
|
- port
|
||||||
|
- uri
|
||||||
|
- local
|
||||||
|
- relay
|
||||||
|
- IPv6
|
||||||
properties:
|
properties:
|
||||||
protocol:
|
protocol:
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
Reference in New Issue
Block a user