Add X-Plex-Product header for pin call

Calling https://plex.tv/api/v2/pins expects the X-Plex-Product header with name of the application (product) which wants to create the PIN.
This commit is contained in:
František Augusztin
2024-06-13 20:14:24 +02:00
parent 4b62053181
commit e1e9e47b68
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
name: X-Plex-Product
description: |
Product name of the application shown in the list of devices
in: header
schema:
type: string
example: Postman
required: true

View File

@@ -19,6 +19,7 @@ post:
default: false
required: false
- $ref: "../../parameters/ClientIdentifier.yaml"
- $ref: "../../parameters/ClientProduct.yaml"
responses:
"201":
description: The Pin