DeleteCalendarEvent

Function to delete a calendar event or a whole recurring series. The event is also deleted from the owner's Google and Microsoft calendar

DELETE https://rest.crmango.com/api/DeleteCalendarEvent

Authorization

1 Sent in the request headers
Bearer varchar

Auth token (required in Authorization header)

Body data

2 Sent in the request body
event_id integer

ID of the event to delete (required)
Reference: GetAllCalendarEvents

delete_scope varchar

single (default) = only this event, series = all events of the series of this user including past ones

Response

5 HTTP 200

Function to delete a calendar event

code integer

HTTP status code (200 = OK)

message varchar

Info message

deleted integer

Number of deleted events

sync.google varchar

Synchronization with the owner's Google and Microsoft calendar: ok, failed, partial (series - only some dates), not_connected

sync.microsoft varchar

Synchronization with the owner's Google and Microsoft calendar: ok, failed, partial (series - only some dates), not_connected

Example request

curl --request DELETE \
  --url 'https://rest.crmango.com/api/DeleteCalendarEvent' \
  --header 'Authorization: Bearer auth_token' \
  --header 'Content-Type: application/json' \
  --data '{
    {
        "event_id": 1301,
        "delete_scope": "series"
    }
  }'
{
    "code": 200,
    "message": "Calendar series has been deleted",
    "deleted": 4,
    "sync": {
        "google": "ok",
        "microsoft": "not_connected"
    }
}