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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Video.Hooks.Admin.WatchHistory {
    public var reset: Reset {
        Reset(path: path + "/reset")
    }

    public struct Reset {
        /// Path: `/api/video/hooks/admin/watch_history/reset`
        public let path: String

        /// Reset Watch History
        ///
        /// Reset the current user's Hooks watch history in Redis.
        /// Staff-only endpoint that clears all watched hook records.
        /// Requires confirmation flag to prevent accidental resets.
        public func post(_ body: GenAPI.ResetWatchHistoryRequest) -> Request<GenAPI.ResetWatchHistoryResponse> {
            Request(path: path, method: "POST", body: body, id: "studio_api_video_hooks_admin_api_reset_watch_history")
        }
    }
}
