Skip to content

Latest commit

 

History

History
86 lines (65 loc) · 2.33 KB

product-categories.md

File metadata and controls

86 lines (65 loc) · 2.33 KB

Product Categories

List all categories

GET /api/v1/product_categories

Query parameters

Name Type Description
fields string Comma-separated list of fields. Example id,parent_id,name
enabled boolean Only enabled categories

Retrieve a category

GET /api/v1/product_categories/{category_id}

Create a category

POST /api/v1/product_categories

Request body

Name Type Description
name string -
description string -
meta_description string -
meta_title string -
enabled boolean -
sort string -
parent_id string -
position integer -
slug string -

Update a category

PUT /api/v1/product_categories/{category_id}

Request body

Name Type Description
name string -
description string -
meta_description string -
meta_title string -
enabled boolean -
sort string -
parent_id string -
position integer -
slug string -

Delete a category

DELETE /api/v1/product_categories/{category_id}

Upload a category image

POST /api/v1/product_categories/{category_id}/image

Delete a category image

DELETE /api/v1/product_categories/{category_id}/image