Create a new product category. Requires login.| parameter name | required | type | description |
|---|
| data.title | is | string | classification name |
| data.orderby | is | string | sort |
| data.show_type | no | int | Display method 0 Full day display 1 Set time period |
| data.time | no | string | Required if show_type=1. Display time period |
| data.time.stime | no | string | start time |
| data.time.ltime | no | string | end time |
Request
Body Params application/x-www-form-urlencodedRequired
Request Code Samples
curl --location '/api.php?API=biz%2Fproduct%2Fcate%2Fcreate' \
--header 'Authorization: {{bearerToken}}' \
--data-urlencode 'data={"title":"New Category","orderby":"2","show_type":"1","time":[{"stime":"6:00","ltime":"18:00"},{"stime":"18:00","ltime":"19:00"}]}' \
--data-urlencode 'CLIENT_API=BIZ' \
--data-urlencode 'openid={{openid}}'
Responses
Successful response - returns new category ID
{
"data": {
"cate_id": "85571"
},
"error": "0",
"message": "Category created successfully"
}
Modified at 2026-04-21 01:43:04