Create a category
Create a single product category in Propeller with localized names and a parent category reference.
Endpoint
POST /v2/categories/
Request
{
"names": [
{ "language": "EN", "value": "Power Tools" },
{ "language": "NL", "value": "Elektrisch gereedschap" }
],
"descriptions": [
{ "language": "EN", "value": "Professional and consumer power tools" },
{ "language": "NL", "value": "Professioneel en consument elektrisch gereedschap" }
],
"shortDescriptions": [
{ "language": "EN", "value": "Power tools" },
{ "language": "NL", "value": "Elektrisch gereedschap" }
],
"language": "EN",
"source": "pim-akeneo",
"sourceId": "CAT-TOOLS-001",
"parent": {
"id": 1736
}
}
Response
{
"data": {
"id": 38614,
"names": [
{ "language": "EN", "value": "Power Tools" },
{ "language": "NL", "value": "Elektrisch gereedschap" }
],
"descriptions": [
{ "language": "EN", "value": "Professional and consumer power tools" },
{ "language": "NL", "value": "Professioneel en consument elektrisch gereedschap" }
],
"shortDescriptions": [
{ "language": "EN", "value": "Power tools" },
{ "language": "NL", "value": "Elektrisch gereedschap" }
],
"language": "EN",
"source": "pim-akeneo",
"sourceId": "CAT-TOOLS-001",
"parent": {
"id": 1736
}
},
"messages": ["Category created"],
"total": 1
}
How it works
Every category requires a parent reference. Use parent.id to reference the parent by Propeller ID, or parent.sourceId (with a source field on the parent object) to reference it by external identifier. The source and sourceId fields on the category itself let you tag it with your external system's identifier for future updates. Localized fields like names, descriptions and shortDescriptions accept an array of language objects. For bulk imports with tree structures, use POST /v2/categories/bulk/sourceId instead.