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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Unified.Items {
    public var toggleComments: ToggleComments {
        ToggleComments(path: path + "/toggle-comments")
    }

    public struct ToggleComments {
        /// Path: `/api/unified/items/toggle-comments`
        public let path: String

        /// Toggle Comments
        ///
        /// Toggle comments for a feed item.
        public func post(_ body: GenAPI.GenericToggleCommentsRequest) -> Request<GenAPI.GenericToggleCommentsResponse> {
            Request(path: path, method: "POST", body: body, id: "studio_api_unified_feed_actions_api_toggle_comments")
        }
    }
}
