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

Update Product Category

Update the general fields (localized name, code, parent, status).

Read the existing product category first. Check the replacement rules below before sending a partial list or localized value.

Behaviour

Only the fields you send are changed; omitted fields keep their stored value.

Connected products are preserved. 409 if the code is taken.

Requires the productCategories:write scope.

put
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 Update Product Category (PUT /v1/product-categories/{productCategoryId}). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ.

codestring · min: 1 · max: 255Optional
statusstring · enumOptionalPossible values:
parentProductCategoryIdstring · nullableOptional

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}$
Responses
200

Successful response.

application/json
put/v1/product-categories/{productCategoryId}
PUT /v1/product-categories/{productCategoryId} HTTP/1.1
Host: admin.mimeeqapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 143

{
  "name": {
    "en": "Seating",
    "de": "Sitzmöbel"
  },
  "code": "text",
  "status": "ACTIVE",
  "parentProductCategoryId": "PC-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?