POST

Delete Session


Deprecated

This method has been replaced with Cancel Event, and will be removed on June 30, 2025.

Deletes a session from a schedule.

Use the participantNotification property to send an email to the participants when the session is deleted.

When deleting a session of type "EVENT" where a booking exists, the booking's status is updated to "CANCELED".

To delete a set of recurring sessions, specify the session's recurringSessionId in the sessionId property of the request parameters.

Permissions This endpoint requires the Manage Bookings permissions scope

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

Path Params
idstringRequired

Session ID. Required.

Body Params
notifyParticipantsbooleandeprecated

Deprecated, use participant_notification


participantNotificationParticipantNotification

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

Response Object
idstring

Session ID.

Delete Session

Deletes a session

Request
cURL
curl -X POST \ 'https://www.wixapis.com/bookings/v1/calendar/sessions/2mmoW0vwKcSFyxtOfCdMr5jzNtbCs62lQ62AcLzRcPOZFywzW4Ei3WJC79mkE1rRreylI1FCRYfP3MB36naHxEou7NieV8Cfdbu1/cancel' \ -H "Content-Type: application/json" \ -H 'Authorization: <AUTH>' \ --data '{ "participantNotification": { "message": "Session is canceled due to the incoming snow storm", "notifyParticipants": true } }'
Response
JSON
{ "id": "2mmoW0vwKcSFyxtOfCdMr5jzNtbCs62lQ62AcLzRcPOZFywzW4Ei3WJC79mkE1rRreylI1FCRYfP3MB36naHxEou7NieV8Cfdbu1" }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?