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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Marketplace.Projects.WithProjectId {
    public var assign: Assign {
        Assign(path: path + "/assign")
    }

    public struct Assign {
        /// Path: `/api/marketplace/projects/{project_id}/assign`
        public let path: String

        /// Assign Fulfiller
        ///
        /// Assign a fulfiller to a project (OPEN -> IN_PROGRESS)
        public func post(fulfillerId: Int) -> Request<GenAPI.ProjectResponse> {
            Request(path: path, method: "POST", query: [("fulfiller_id", String(fulfillerId))], id: "studio_api_marketplace_api_assign_fulfiller")
        }
    }
}
