Creates a category.
You can only call this method when authenticated as a Wix app or Wix user identity.
Category to create.
Created category.
curl -X POST 'https://www.wixapis.com/events/v1/categories' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH TOKEN>' \
-d '{
"category": {
"name": "leather",
"states": ["MANUAL"]
}
}'
{
"category": {
"id": "e9779de3-a085-4255-b3a6-9559990d4436",
"name": "leather",
"states": ["MANUAL"]
"createdDate": "2021-04-01T09:49:37.068Z"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.