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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Unified.Items.Comments {
    public func commentId(_ commentId: String) -> WithCommentId {
        WithCommentId(path: "\(path)/\(commentId)")
    }

    public struct WithCommentId {
        /// Path: `/api/unified/items/comments/{comment_id}`
        public let path: String

        /// Edit Comment
        ///
        /// Update an existing comment.
        public func put(_ body: [String: AnyJSON]) -> Request<[String: AnyJSON]> {
            Request(path: path, method: "PUT", body: body, id: "studio_api_unified_feed_actions_api_edit_comment")
        }

        /// Delete Comment
        ///
        /// Delete a comment.
        public var delete: Request<[String: AnyJSON]> {
            Request(path: path, method: "DELETE", id: "studio_api_unified_feed_actions_api_delete_comment")
        }
    }
}
