Create Category
POST /api/v1/categories
| Field | Required | Description |
|---|---|---|
cat_name | Yes | Category name |
cat_parent_id | No | Parent ID (0 = top level) |
status | No | 1 = active (default) |
priority | No | Sort order |
curl -X POST -H "Authorization: Bearer KEY:SECRET"
-H "Content-Type: application/json"
-d '{"cat_name": "Accessories", "cat_parent_id": 0}'
https://example.com/api/v1/categories
Update Category
PUT /api/v1/categories/{id}
Delete Category
DELETE /api/v1/categories/{id}
Child categories are reassigned to the deleted category's parent.