Update a Product Category
Updates a Product Category.
Request
Body Params application/json
{
"name": "string",
"description": "string",
"handle": "string",
"is_internal": true,
"is_active": true,
"parent_category_id": "string",
"rank": 0
}
Request samples
curl --location --request POST 'https://api.medusa-commerce.com/admin/product-categories/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"description": "string",
"handle": "string",
"is_internal": true,
"is_active": true,
"parent_category_id": "string",
"rank": 0
}'
Responses
application/json {
"product_category": {
"id": "pcat_01G2SG30J8C85S4A5CHM2S1NS2",
"name": "Regular Fit",
"handle": "regular-fit",
"mpath": "pcat_id1.pcat_id2.pcat_id3",
"is_internal": false,
"is_active": false,
"rank": 0,
"parent_category_id": null,
"parent_category": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"category_children": [
{}
],
"products": [
{}
]
}
}
Modified at 2023-10-08 12:50:29