From 0b6764da787911dfc0d8c3d2609ef1a31605ccd3 Mon Sep 17 00:00:00 2001 From: szekelyzol Date: Tue, 5 Nov 2024 21:38:00 +0100 Subject: [PATCH] Re-add 409 for patch summary source --- oas_apivideo.yaml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/oas_apivideo.yaml b/oas_apivideo.yaml index 697818ae..bf3f5a36 100644 --- a/oas_apivideo.yaml +++ b/oas_apivideo.yaml @@ -1390,7 +1390,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/summary-source' + $ref: '#/components/schemas/summary-source' + '409': + headers: + X-RateLimit-Limit: + schema: + type: integer + description: The request limit per minute. + X-RateLimit-Remaining: + schema: + type: integer + description: The number of available requests left for the current time window. + X-RateLimit-Retry-After: + schema: + type: integer + description: The number of seconds left until the current rate limit window resets. + description: Conflict + content: + application/json: + schema: + $ref: '#/components/schemas/conflict-error' + examples: + Summary generation still in progress: + value: + type: https://docs.api.video/reference/summary-already-exists + title: A summary already exists or is being created on this video. + status: 409 + detail: You can delete the existing summary and generate a new one. '/videos/{videoId}/source': post: tags: