POST

Reorder Event Policies


Changes policy order in an event dashboard and agreement checkbox on the checkout form. By default, the policies are arranged by the created date in descending order.

Note: It is possible to use both beforePolicyId and afterPolicyId at the same time but only the last one defined will be executed.

Authentication

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

Permissions
Manage Events - all permissions
Manage Policies
Manage Events
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/events-policies/v2/policies/reorder

Body Params
eventIdstringRequiredformat GUID

Event ID.


policyIdstringRequiredformat GUID

Policy ID.


One Of
Choose one of the following parameters

beforePolicyIdstringformat GUID

Move the given policyId before the referenced policy.


afterPolicyIdstringformat GUID

Move the given policyId after the referenced policy.

Response Object
policiesArray <Policy>

Policies in the new order.

Reorder Policies
Request
cURL
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.

Event TriggersThis method triggers the following events:
Did this help?