Create Product Category
Create a product category.
Use this to create a reusable product category in your account. Inspect the returned record before continuing the synchronization.
Behaviour
Only the localized name and unique code are required; you may also set a parent (must be one of your categories) and pass the general fields (status) and connected products to build the whole category in one call.
Extras are applied by a follow-up update after the category exists; if that step fails the category is still created and the response shows it without them.
New categories default to INACTIVE.
Returns 409 if the code is taken.
Requires the productCategories:write scope.
API key sent as a bearer token (mk_live_… / mk_test_…).
Data schema used by Create Product Category (POST /v1/product-categories). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ.
Unique category code within the account.
CHAIRSProduct category identifier (PC-).
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}$Product identifier (PROD-).
PROD-123e4567-e89b-12d3-a456-426614174000Created.
Invalid request data.
Missing or invalid API key.
The API key lacks the required scope (scope_denied), or the operation is not permitted for this account (operation_not_permitted).
Conflict with the current state (e.g. the resource already exists).
The API key exceeded its request rate (rate_limit_exceeded) or its monthly quota (quota_exceeded). Both carry Retry-After; the RateLimit-* headers accompany rate_limit_exceeded only, since a spent quota says nothing about the bucket.
Internal server error.
POST /v1/product-categories HTTP/1.1
Host: admin.mimeeqapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 204
{
"name": {
"en": "Seating",
"de": "Sitzmöbel"
},
"code": "CHAIRS",
"parentProductCategoryId": "PC-123e4567-e89b-12d3-a456-426614174000",
"status": "ACTIVE",
"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?