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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Gen.WithClipId {
    public var toggleComments: ToggleComments {
        ToggleComments(path: path + "/toggle_comments")
    }

    public struct ToggleComments {
        /// Path: `/api/gen/{clip_id}/toggle_comments`
        public let path: String

        /// Toggle Comments
        ///
        /// Set allow_comments on a GeneratedClip. User must own clip.
        public func post(_ body: GenAPI.ToggleCommentsRequest) -> Request<Void> {
            Request(path: path, method: "POST", body: body, id: "studio_api_bots_gen_api_toggle_comments")
        }
    }
}
