Actions25
- Product Actions
- Category Actions
- Customer Actions
- Order Actions
- Inventory Actions
- Store Actions
Category → Create
AI-generatedSummary
Create a category in Magento via POST /rest/V1/categories
Inputs
- categoryData (required) — Category data in JSON format
- websiteCode — Store view code for multi-store Magento instances (used in URL like /rest/{code}/V1/...). Options are loaded from your Magento store, but you can enter any custom store view code.
- simplifyOutput — When enabled, flattens the response structure. Converts custom_attributes array to an object, flattens extension_attributes, and simplifies nested structures.
Output shape
The Magento API response for category creation, optionally flattened if simplifyOutput is true.
Category data JSON is wrapped as {category:
} via createJsonBodyPreSend. If websiteCode is set, the request URL becomes /rest/{websiteCode}/V1/categories. SimplifyOutput invokes helpers.flattenResponse to convert custom_attributes to an object and streamline nested structures.