POST

Assign Events


Assigns events to a single category.

Authentication

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

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

Path Params
categoryIdstringRequired

ID of category to which events should be assigned.

Body Params
eventIdArray <string>Requiredformat GUIDminItems 1maxItems 100

A list of events IDs.

Response Object
Returns an empty object.
Assign Events Example 1
Request
cURL
curl -X POST 'https://www.wixapis.com/events/v1/categories/e9779de3-a085-4255-b3a6-9559990d4436/events' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH TOKEN>' \ -d '{ "categoryId": "e9779de3-a085-4255-b3a6-9559990d4436", "eventId": [ "539a564e-48d2-4eac-8e14-d7a91be6b1c2", "abd39eb7-844c-4321-9ea2-0d43040be05e" ] }'
Response
JSON
{}
Errors

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

Did this help?