'How to Cancel/Delete a scheduled Calendly event (linked with google meet), which should also be removed from google calendar?

I tried looking at the developer docs.

One specific API which caught my eye: https://developer.calendly.com/api-docs/b3A6Mzc3OTc1OTc-delete-invitee-no-show This marks the invitee as "no show" and it doesn't free up the calendar of the organizer.



Solution 1:[1]

Calendly does not currently provide a public api to cancel an existing event. To cancel the event without using Calendly's UI you would need to use the Google Calendar api to delete the event.

If you have the Sync cancellations feature enabled in Calendly then deleting the Google calendar event will cause the event to also be canceled in Calendly.

enter image description here

Solution 2:[2]

So, I asked this question to their support and got the following response.

At this time, there is not an API endpoint that supports canceling or rescheduling a scheduled event, however, the cancel and reschedule URLs are on the Invitee Resource.

The cancel and reschedule URL are on the v2 API webhook payload as well. You can see an example of the payload here. These URLs are always inserted at the bottom of calendar events or email confirmations, but they are available on the API to be more easily retrievable.

You can invoke PUT API https://calendly.com/api/booking/cancellations/{invitee_uuid} with request body

"cancellation": {
    "cancel_reason": "reason text",
    "canceled_by": "",
}

Please understand that this API can change any time without any notice.

sample payload

Solution 3:[3]

You could use this endpoint, doesn't it work for you? Maybe it's a new endpoint, I haven't seen it there a few days ago.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tyler Campbell
Solution 2 Raj Sheth
Solution 3