Create a new product category. Requires login.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
or
Body Params application/x-www-form-urlencodedRequired
Request Code Samples
curl --location --request POST '/api.php?API=biz/product/cate/create' \
--header 'Authorization: Bearer <token>' \
--data-urlencode 'CLIENT_API=' \
--data-urlencode 'openid=' \
--data-urlencode 'data={"title":"New Category","orderby":"2","show_type":"1","time":[{"stime":"6:00","ltime":"18:00"},{"stime":"18:00","ltime":"19:00"}]}'
Responses
application/json
Successful response - returns new category ID
{
"data": {
"cate_id": "85571"
},
"error": "0",
"message": "Category created successfully"
}
Modified at 2026-04-14 03:43:47