setDefaultBookingPolicy( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Sets a booking policy as the default.

Also updates the site's current default policy by setting its default attribute to false. If the provided policy is already the site's default, the call succeeds without changing any bookingPolicy object.

Authentication

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

Permissions
Manage Bookings Services and Settings
Manage Bookings - all permissions
Manage Bookings
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
bookingPolicyIdstringRequired

ID of the booking policy that's set as default.

Returns
Return Type:Promise<SetDefaultBookingPolicyResponse>
Did this help?