From 19b8cfaa4f14f49ba0f9119224c58200c95dac5c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 19 Mar 2025 06:57:00 +0100 Subject: [PATCH] Add OTP header doc --- support/doc/api/openapi.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index c665f811e..a3380343d 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -1503,6 +1503,13 @@ paths: description: With your [client id and secret](#operation/getOAuthClient), you can retrieve an access and refresh tokens. tags: - Session + parameters: + - name: x-peertube-otp + in: header + schema: + type: string + required: false + description: If the user enabled two factor authentication, you need to provide the OTP code in this header requestBody: content: application/x-www-form-urlencoded: