This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a booking policy.
You can only call this method when authenticated as a Wix app or Wix user identity.
function createBookingPolicy(
bookingPolicy: BookingPolicy,
): Promise<BookingPolicy>;
Booking policy to create.
import { bookingPolicies } from "@wix/bookings";
async function createBookingPolicy(bookingPolicy) {
const response = await bookingPolicies.createBookingPolicy(bookingPolicy);
}
There are 2 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.