Changes policy order in an event dashboard and agreement checkbox on the checkout form. For example, if we have 3 policies in the list, after using this function the 3rd policy will become the 1st, and other policies will move by 1 position. 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.
The reorderEventPolicies() function returns a Promise that resolves to the newly-reordered policy.
This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:
Event policy ID.
Event ID.
Options for Reorder Event Policies function.
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.