For the complete documentation index, see llms.txt. This page is also available as Markdown.

Remove Product Category Products

Remove a subset of products from the category by id.

Use this to remove selected relationships without replacing the remaining list. It does not delete the referenced resources themselves.

Behaviour

Ids that are not connected are ignored.

Requires the productCategories:write scope.

post
Authorizations
AuthorizationstringRequired

API key sent as a bearer token (mk_live_… / mk_test_…).

Path parameters
productCategoryIdstringRequired

Product category identifier (PC-).

Example: PC-123e4567-e89b-12d3-a456-426614174000Pattern: ^PC-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Body

Data schema used by Remove Product Category Products (POST /v1/product-categories/{productCategoryId}/products:remove). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ.

productIdsstring[] · min: 1Required

Product identifier (PROD-).

Example: PROD-123e4567-e89b-12d3-a456-426614174000
Responses
200

Successful response.

application/json
post/v1/product-categories/{productCategoryId}/products:remove
POST /v1/product-categories/{productCategoryId}/products:remove HTTP/1.1
Host: admin.mimeeqapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 60

{
  "productIds": [
    "PROD-123e4567-e89b-12d3-a456-426614174000"
  ]
}
{
  "data": {
    "productCategoryId": "PC-123e4567-e89b-12d3-a456-426614174000",
    "name": "Chair",
    "code": "text",
    "status": "ACTIVE",
    "parentProductCategoryId": "text",
    "numberOfProducts": 1,
    "products": [
      "text"
    ]
  }
}

Last updated

Was this helpful?