Delete Calendar Event

Permanently delete a calendar event by EventToken. The event must belong to the authenticated user.

DELETE /calendar/delete

Description

This endpoint permanently deletes a calendar event by its EventToken. The event must belong to the authenticated user. This action cannot be undone.

Authentication

This endpoint requires Bearer token authentication via the Authorization header.

Request Body

{ "EventToken": "uuid-v4-string" }
Required Parameters
Parameter Type Description
EventToken string UUID v4 format of the calendar event to delete

Code Examples

curl -X DELETE "https://api-v3.sweeppea.com/calendar/delete" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"EventToken": "cf1b198f-5c58-4bc6-b944-f466d3e38bc7"}'

Response

200 OK

{ "Response": true, "Message": "Calendar Event Deleted Successfully" }

Error Responses

400 Bad Request

{ "Response": false, "Message": "EventToken is Required", "Code": 400 }

401 Unauthorized

{ "Response": false, "Message": "Invalid or Missing Bearer Token", "Code": 401 }

403 Forbidden

{ "Response": false, "Message": "Invalid API Token", "Code": 403 }

404 Not Found

{ "Response": false, "Message": "Calendar Event Not Found", "Code": 404 }

500 Internal Server Error

{ "Response": false, "Message": "Internal Server Error", "Code": 500 }