import { Request, Response } from "express"; /** * @oas [delete] /collections/{id}/products/batch * operationId: "DeleteProductsFromCollection" * summary: "Remove Product" * description: "Removes products associated with a Product Collection" * x-authenticated: true * parameters: * - (path) id=* {string} The ID of the Collection. * requestBody: * content: * application/json: * schema: * required: * - product_ids * properties: * product_ids: * description: "An array of Product IDs to remove from the Product Collection." * type: array * items: * description: "The ID of a Product to add to the Product Collection." * type: string * x-codeSamples: * - lang: Shell * label: cURL * source: | * curl --location --request DELETE 'https://medusa-url.com/admin/collections/{id}/products/batch' \ * --header 'Authorization: Bearer {api_token}' \ * --header 'Content-Type: application/json' \ * --data-raw '{ * "product_ids": [ * "prod_01G1G5V2MBA328390B5AXJ610F" * ] * }' * security: * - api_token: [] * - cookie_auth: [] * tags: * - Collection * responses: * "200": * description: OK * content: * application/json: * schema: * properties: * id: * type: string * description: "The ID of the collection" * object: * type: string * description: "The type of object the removal was executed on" * default: product-collection * removed_products: * description: "The IDs of the products removed from the collection" * type: array * items: * description: "The ID of a Product to add to the Product Collection." * type: string * "400": * $ref: "#/components/responses/400_error" * "401": * $ref: "#/components/responses/unauthorized" * "404": * $ref: "#/components/responses/not_found_error" * "409": * $ref: "#/components/responses/invalid_state_error" * "422": * $ref: "#/components/responses/invalid_request_error" * "500": * $ref: "#/components/responses/500_error" */ declare const _default: (req: Request, res: Response) => Promise; export default _default; export declare class AdminDeleteProductsFromCollectionReq { product_ids: string[]; }