POST

Bulk Assign Events


Assigns events to multiple categories at once.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Events - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/events/v1/bulk/categories/events

Body Params
categoryIdArray <string>Requiredformat GUIDminItems 1maxItems 10

A list of category IDs to which events should be assigned.


eventIdArray <string>Requiredformat GUIDminItems 1maxItems 1

A list of events IDs.

Response Object
resultsArray <BulkCategoryResult>

Bulk assign results.


bulkActionMetadataBulkActionMetadata

Metadata of results.

Bulk Assign Events Example 1
Request
cURL
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" ] }'
Response
JSON
{ "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 } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?