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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Video.Hooks.Comments.WithHookId {
    public var toggleComments: ToggleComments {
        ToggleComments(path: path + "/toggle-comments")
    }

    public struct ToggleComments {
        /// Path: `/api/video/hooks/comments/{hook_id}/toggle-comments`
        public let path: String

        /// Toggle Comments
        public func post(_ body: GenAPI.ToggleCommentsRequest) -> Request<GenAPI.GenericToggleCommentsResponse> {
            Request(path: path, method: "POST", body: body, id: "studio_api_video_hooks_comments_api_toggle_comments")
        }
    }
}
