Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Update Bookings Policy

Developer Preview

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

Permissions

This endpoint requires the Manage Bookings permission scope.

PUT

https://www.wixapis.com/bookings/v1/services/policy

Body Params

NAME
TYPE
DESCRIPTION
policy

object

Service policy.

Response Object

Returns an empty object.

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Update Bookings Policy

Updates the business' Bookings policy

Request

curl

Copy Code
1curl -X PUT \
2 'https://www.wixapis.com/bookings/v1/services/policy' \
3 -H "Content-Type: application/json" \
4 -H 'Authorization: <AUTH>' \
5 --data '{
6 "policy": {
7 "bookUpToXMinutesBefore": 0,
8 "cancelRescheduleUpToXMinutesBefore": 0,
9 "futureBookingsPolicy": {
10 "shouldLimit": false,
11 "limitXMinutesToTheFuture": 10080
12 },
13 "waitingListPolicy": {
14 "isEnabled": false,
15 "capacity": 10,
16 "timeWindowMinutes": 10
17 }
18 }}'

Response

json

1
2{}