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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Gen.WithGenId {
    public var setVisibility: SetVisibility {
        SetVisibility(path: path + "/set_visibility")
    }

    public struct SetVisibility {
        /// Path: `/api/gen/{gen_id}/set_visibility`
        public let path: String

        /// Set Visibility
        ///
        /// Set is_public visibility on a GeneratedClip. User must own clip.
        public func post(_ body: GenAPI.ClipVisibilitySpec) -> Request<Void> {
            Request(path: path, method: "POST", body: body, id: "studio_api_bots_gen_api_set_visibility")
        }
    }
}
