From e1e9e47b68ac0757fb3554af7b01ad16eb181410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Augusztin?= Date: Thu, 13 Jun 2024 20:14:24 +0200 Subject: [PATCH] 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. --- parameters/ClientProduct.yaml | 8 ++++++++ paths/pins/pins.yaml | 1 + 2 files changed, 9 insertions(+) create mode 100644 parameters/ClientProduct.yaml diff --git a/parameters/ClientProduct.yaml b/parameters/ClientProduct.yaml new file mode 100644 index 00000000..1c6400bf --- /dev/null +++ b/parameters/ClientProduct.yaml @@ -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 diff --git a/paths/pins/pins.yaml b/paths/pins/pins.yaml index 83ac0b31..d6277a0d 100644 --- a/paths/pins/pins.yaml +++ b/paths/pins/pins.yaml @@ -19,6 +19,7 @@ post: default: false required: false - $ref: "../../parameters/ClientIdentifier.yaml" + - $ref: "../../parameters/ClientProduct.yaml" responses: "201": description: The Pin