Skip to main content

Remove products from collection

PUT /v2/product/collection/products/remove

Removes one or more product groups from multiple product collections. The endpoint updates each affected collection and returns the modified data, including metadata about which product groups were successfully removed and which were not found within the collections.

Request Body

{
"collectionIds": [
"{{productCollectionId}}"
],
"productGroupIds": [
"7e6c1fca-e735-4574-8b09-1ed83b8c0be1",
"2b3d3dba-b344-3281-ac04-1ed83b8c2cd3"
]
}

Response Example

{
"collections": [
{
"name": "Cable Related Products",
"tenant": "6065a9eb6783e09eb34bb844",
"productGroupIds": [
"a569154b-1d2f-4008-ac72-f2fc744715a7"
],
"created": "2025-07-03T10:00:00.000Z",
"updated": "2025-07-03T10:45:00.000Z",
"productGroups": [
{
"id": "a569154b-1d2f-4008-ac72-f2fc744715a7",
"group_id": "a569154b-1d2f-4008-ac72-f2fc744715a7",
"tenant": "6065a9eb6783e09eb34bb844",
"name": "100-Pack Zip Ties"
}
],
"id": "6835c3c22d22c57cf7674a01"
}
],
"metadata": {
"productGroupsRemoved": [
"7e6c1fca-e735-4574-8b09-1ed83b8c0be1"
],
"productGroupsNotFound": [
"nonexistent-id"
]
}
}