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

Delete Session

Developer Preview

Deletes a session from a schedule.

Permissions
This endpoint requires the Manage Bookings permissions scope

Authorization

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

POST

https://www.wixapis.com/bookings/v1/calendar/sessions/{id}/cancel

Path Params

NAME
TYPE
DESCRIPTION
id
Required

string

Session ID. Required.

Body Params

NAME
TYPE
DESCRIPTION
notifyParticipants
Deprecated

boolean

Deprecated, use participant_notification

participantNotification

object

Whether to notify participants about the change, and an optional custom message.

Response Object

NAME
TYPE
DESCRIPTION
id

string

Session ID.

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Delete Session

Deletes a session

Request

curl

Copy Code
1curl -X POST \
2 'https://www.wixapis.com/bookings/v1/calendar/sessions/2mmoW0vwKcSFyxtOfCdMr5jzNtbCs62lQ62AcLzRcPOZFywzW4Ei3WJC79mkE1rRreylI1FCRYfP3MB36naHxEou7NieV8Cfdbu1/cancel' \
3 -H "Content-Type: application/json" \
4 -H 'Authorization: <AUTH>' \
5 --data '{
6 "participantNotification": {
7 "message": "Session is canceled due to the incoming snow storm",
8 "notifyParticipants": true
9 }
10 }'

Response

json

1
2{"id": "2mmoW0vwKcSFyxtOfCdMr5jzNtbCs62lQ62AcLzRcPOZFywzW4Ei3WJC79mkE1rRreylI1FCRYfP3MB36naHxEou7NieV8Cfdbu1"}