Update a Product Category
POST
/admin/product-categories/{id}
Product Categories
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/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
}'
Response Response Example
200 - Example 1
{
"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": [
{}
]
}
}
Request
Path Params
id
string
required
Query Params
expand
string
optional
fields
string
optional
Body Params application/json
Responses
Modified at 2023-10-10 11:56:36