POST

Reorder Category Events


Change the order of events that are assigned to the same category on the Events Widget.

For more information on how events are displayed in the widget, read this article.

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/categories/{categoryId}/reorder

Path Params
categoryIdstringRequired

Category ID.

Body Params
eventIdstringformat GUID

Event ID.


ONE OF:

beforeEventIdstringformat GUID

Move the event before defined eventId.


afterEventIdstringformat GUID

Move the event after defined eventId.

Response Object
Returns an empty object.
Reorder Category Events Example 1
Request
cURL
curl -X POST 'https://www.wixapis.com/events/v1/categories/6c313b96-1961-4f0f-b6d7-61788e1a25df/reorder' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH TOKEN>' \ { "eventId": "4e5e4adb-9778-4171-a9bb-44e27834ac89", "afterEventId": "32c0eab1-b7a0-4ec2-9fb6-db76f76ee488" }
Response
JSON
{}
Errors
400Invalid Argument

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?