Skip to main content

Create Category

POST /v2/product/category

Creates a new product category for organizing products within the system. This endpoint validates the category name, assigns an order index for display purposes, and associates it with the authenticated tenant. Returns the newly created category object with its unique identifier and metadata.

Request Body

{
"name": "TechGear"
}

Response Example

{
"name": "TechGear",
"tenant": "tenant-id-1",
"orderIndex": 8,
"_id": "category-id-1",
"created": "2025-10-22T09:57:24.611Z",
"updated": "2025-10-22T09:57:24.611Z",
"__v": 0,
"id": "category-id-1"
}