Skip to main content
PATCH/product-categories-by-id/:custom_id/

Update product category

You can update a product category.

AttributesTypeRequiredDescription
custom_idstringnoA unique identifier for the product which is provided by the client.
descriptionstringnoA product category description.
namestringyesA category name.

Request​

curl -X PATCH
"https://<your_app_subdomain>.user.com/api/public/product-categories-by-id/:custom_id/"
-H 'authorization: Token <your_64_char_api_key>'
-H 'content-type: application/json'
-d '{
"name": "updated category name",
"custom_id": "my_id",
"description": "category description"
}'

Response​

{
"id": 30,
"name": "updated category name",
"custom_id": "my_id",
"description": "category description"
}