Create a new category
POST
/api/rest/v1/categories
Category
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/rest/v1/categories' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "winter_collection",
"labels": {
"en_US": "Winter collection",
"fr_FR": "Collection hiver"
},
"parent": null,
"position": 1,
"updated": "2023-08-15T05:53:50.708Z",
"values": {
"description|96b88bf4-c2b7-4b64-a1f9-5d4876c02c26|ecommerce|en_US": {
"attribute_code": "description|96b88bf4-c2b7-4b64-a1f9-5d4876c02c26",
"channel": "ecommerce",
"data": "<p>Winter collection description</p>\n",
"locale": "en_US",
"type": "textarea"
}
}
}'
Response Response Example
201 - Example 1
{}
Request
Body Params application/json
Responses
Modified at 2023-08-15 05:53:55