Assigns events to multiple categories at once.
You can only call this method when authenticated as a Wix app or Wix user identity.
A list of category IDs to which events should be assigned.
A list of events IDs.
Bulk assign results.
Metadata of results.
curl -X POST 'https://www.wixapis.com/events/v1/bulk/categories/events' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH TOKEN>' \
-d '{
"categoryId": [
"e9779de3-a085-4255-b3a6-9559990d4436",
"027ac25d-cc64-4eb1-8666-4ea53cf7f134"
],
"eventId": [
"539a564e-48d2-4eac-8e14-d7a91be6b1c2"
]
}'
{
"results": [
{
"itemMetadata": {
"id": "027ac25d-cc64-4eb1-8666-4ea53cf7f134",
"originalIndex": 0,
"success": true
},
"item": {
"id": "027ac25d-cc64-4eb1-8666-4ea53cf7f134",
"name": "2",
"createdDate": "2021-03-25T10:16:57.486Z"
}
},
{
"itemMetadata": {
"id": "e9779de3-a085-4255-b3a6-9559990d4436",
"originalIndex": 1,
"success": true
},
"item": {
"id": "e9779de3-a085-4255-b3a6-9559990d4436",
"name": "technology",
"createdDate": "2021-04-01T09:49:37.068Z"
}
}
],
"bulkActionMetadata": {
"totalSuccesses": 2,
"totalFailures": 0
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.