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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Contests.Contest.WithContestId {
    public var masterClip: MasterClip {
        MasterClip(path: path + "/master_clip")
    }

    public struct MasterClip {
        /// Path: `/api/contests/contest/{contest_id}/master_clip`
        public let path: String

        /// Get Master Clip
        ///
        /// Get the master clip for a contest.
        /// Staff only for now, only used in b-side dashboard
        public var get: Request<GenAPI.MasterClipResponse> {
            Request(path: path, method: "GET", id: "studio_api_contests_api_get_master_clip")
        }

        /// Set Master Clip
        ///
        /// Set a specific base clip as the master clip for a contest.
        /// Staff only endpoint.
        public func put(_ body: GenAPI.SetMasterClipSpec) -> Request<GenAPI.ContestSchema> {
            Request(path: path, method: "PUT", body: body, id: "studio_api_contests_api_set_master_clip")
        }
    }
}
