Creates multipe categories at once.
You can only call this method when authenticated as a Wix app or Wix user identity.
Categories to create.
Bulk create results.
Metadata of results.
curl -X POST 'https://www.wixapis.com/events/v1/bulk/categories/create' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH TOKEN>' \
-d '{
"categories": [
{
"name": "leather",
"states": ["MANUAL"]
},
{
"name": "shoes",
"states": ["HIDDEN"]
}
]
}'
{
"results": [
{
"itemMetadata": {
"id": "6c313b96-1961-4f0f-b6d7-61788e1a25df",
"originalIndex": 0,
"success": true
},
"item": {
"id": "6c313b96-1961-4f0f-b6d7-61788e1a25df",
"name": "leather",
"createdDate": "2021-04-01T09:55:31.335Z"
}
},
{
"itemMetadata": {
"id": "022cdce2-6d8d-4dfd-9210-4b6671539173",
"originalIndex": 0,
"success": true
},
"item": {
"id": "022cdce2-6d8d-4dfd-9210-4b6671539173",
"name": "shoes",
"createdDate": "2021-04-01T09:55:31.335Z"
}
}
],
"bulkActionMetadata": {
"totalSuccesses": 2,
"totalFailures": 0
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.