reorderEventPolicies( )


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.

Admin Method

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permission Scopes

For app development, you must have one of the following permission scopes:
Manage Events - all permissions
Manage Policies
Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
policyIdstringRequired

Event policy ID.


eventIdstringRequired

Event ID.


optionsReorderEventPoliciesOptions

Options for Reorder Event Policies function.

Returns
Return Type:Promise<ReorderEventPoliciesResponse>
Was this helpful?
Yes
No