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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Playlist.WithPlaylistId {
    public var regenerate: Regenerate {
        Regenerate(path: path + "/regenerate")
    }

    public struct Regenerate {
        /// Path: `/api/playlist/{playlist_id}/regenerate`
        public let path: String

        /// Regenerate Playlist
        ///
        /// This api is very dangerous and should be used with caution. It will regenerate all the clips in the playlist.
        /// Will limit the usage of api in staging only. If you want to promote this to production, please reach out to Jinhui.
        public func post(_ body: GenAPI.RegeneratePlaylistSpec) -> Request<GenAPI.PlaylistSchema> {
            Request(path: path, method: "POST", body: body, id: "studio_api_bots_playlist_api_regenerate_playlist")
        }
    }
}
