From e168771df9750a9ee2e3492020256870e374c21b Mon Sep 17 00:00:00 2001 From: olivier-lando Date: Mon, 27 Jan 2025 13:57:10 +0000 Subject: [PATCH] Add subtitle in video creation payload --- .openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 | 2 +- docs/VideoCreationPayload.md | 1 + src/Api/VideosApi.cs | 4 ++-- src/Model/VideoCreationPayload.cs | 8 ++++++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 b/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 index 2f4fbda..745e6b6 100644 --- a/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 +++ b/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 @@ -1 +1 @@ -5f3de7eed3d5a2900fd1d2d119c814cf00ac4e957ba0388f06acaf22f51e8e62 \ No newline at end of file +5ec6b63f3aacb48fd403e5ff1ba7674b60e65b4581e31d3b33fb0aa0a7fe6f01 \ No newline at end of file diff --git a/docs/VideoCreationPayload.md b/docs/VideoCreationPayload.md index 8ccfd64..7a0c677 100644 --- a/docs/VideoCreationPayload.md +++ b/docs/VideoCreationPayload.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Title** | **string** | The title of your new video. | +**Subtitle** | **string** | A subtitle for your video. | [optional] **Description** | **string** | A brief description of your video. | [optional] **Source** | **string** | You can either add a video already on the web, by entering the URL of the video, or you can also enter the `videoId` of one of the videos you already have on your api.video acccount, and this will generate a copy of your video. Creating a copy of a video can be especially useful if you want to keep your original video and trim or apply a watermark onto the copy you would create. | [optional] **Public** | **bool** | Default: True. If set to `false` the video will become private. More information on private videos can be found [here](https://docs.api.video/delivery/video-privacy-access-management) | [optional] [default to true] diff --git a/src/Api/VideosApi.cs b/src/Api/VideosApi.cs index 71a6ff0..d274647 100644 --- a/src/Api/VideosApi.cs +++ b/src/Api/VideosApi.cs @@ -85,7 +85,7 @@ public Task> createWithHttpInfoAsync(VideoCreationPayload vid if (videoCreationPayload != null && videoCreationPayload.title == null) { throw new ApiException(400,"Missing required parameter 'videoCreationPayload.Title' when calling VideosApi->create"); } - + // verify the required parameter 'videoCreationPayload' is set if (videoCreationPayload == null) throw new ApiException(400, "Missing required parameter 'videoCreationPayload' when calling VideosApi->create"); @@ -157,7 +157,7 @@ public ApiResponse