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

import Foundation
import Get
import URLQueryEncoder

extension Paths.PlaylistReaction.WithPlaylistId {
    public var updateReactionType: UpdateReactionType {
        UpdateReactionType(path: path + "/update_reaction_type")
    }

    public struct UpdateReactionType {
        /// Path: `/api/playlist_reaction/{playlist_id}/update_reaction_type`
        public let path: String

        /// Update Reaction Type
        ///
        /// Update reaction type on UserPlaylistReaction (and associated Playlist).
        public func post(_ body: GenAPI.ReactionSpec) -> Request<Void> {
            Request(path: path, method: "POST", body: body, id: "studio_api_bots_playlist_reaction_api_update_reaction_type")
        }
    }
}
