// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation
import Get
import URLQueryEncoder

extension Paths.Gen.WithGenId {
    public var setVideoCover: SetVideoCover {
        SetVideoCover(path: path + "/set_video_cover")
    }

    public struct SetVideoCover {
        /// Path: `/api/gen/{gen_id}/set_video_cover`
        public let path: String

        /// Set Video Cover
        ///
        /// Set video cover in the metadata of a GeneratedClip. User must own clip.
        public func post(_ body: GenAPI.VideoCoverSpec) -> Request<GenAPI.VideoCoverSchema> {
            Request(path: path, method: "POST", body: body, id: "studio_api_bots_gen_api_set_video_cover")
        }
    }
}
