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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Video.Hooks.Admin {
    public var reprocessHook: ReprocessHook {
        ReprocessHook(path: path + "/reprocess-hook")
    }

    public struct ReprocessHook {
        /// Path: `/api/video/hooks/admin/reprocess-hook`
        public let path: String

        /// Reprocess Hook
        ///
        /// Set the current user's video cover hook perm in Redis.
        /// Staff-only endpoint that sets the video cover hook perm for the current user.
        public func post(_ body: GenAPI.ReprocessHookRequest) -> Request<GenAPI.ReprocessHookResponse> {
            Request(path: path, method: "POST", body: body, id: "studio_api_video_hooks_admin_api_reprocess_hook")
        }
    }
}
