LogoRecal

Delete Event

Delete an event for a user for a specific calendar and provider

DELETE
/v1/users/{userId}/calendar/events/{provider}/{calendarId}/{eventId}

Authorization

AuthorizationRequiredBearer <token>

The Recal API token

In: header

Path Parameters

userIdRequiredstring
providerRequiredstring

Calendar provider (google or microsoft)

Pattern: "^(google|microsoft)$"
calendarIdRequiredstring
eventIdRequiredstring

Query Parameters

timeZonestring
Default: "UTC"

Response Body

TypeScript Definitions

Use the response body type in TypeScript.

idRequiredstring
metaIdstring
subjectstring
descriptionstring
startDate | string | number
endDate | string | number
locationstring
attendeesRequiredarray<Any properties in object,object>
originalRequiredunknown
successRequiredboolean

TypeScript Definitions

Use the response body type in TypeScript.

responseRequiredstring

TypeScript Definitions

Use the response body type in TypeScript.

responseRequiredstring
curl -X DELETE "https://api.recal.dev/v1/users/string/calendar/events/string/string/string?timeZone=UTC" \
  -H "Authorization: Bearer <token>"
fetch("https://api.recal.dev/v1/users/string/calendar/events/string/string/string?timeZone=UTC", {
  headers: {
    "Authorization": "Bearer <token>"
  }
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.recal.dev/v1/users/string/calendar/events/string/string/string?timeZone=UTC"

  req, _ := http.NewRequest("DELETE", url, nil)
  req.Header.Add("Authorization", "Bearer <token>")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.recal.dev/v1/users/string/calendar/events/string/string/string?timeZone=UTC"

response = requests.request("DELETE", url, headers = {
  "Authorization": "Bearer <token>"
})

print(response.text)
{
  "id": "string",
  "metaId": "string",
  "subject": "string",
  "description": "string",
  "start": "1970-01-01T00:00:00.000Z",
  "end": "1970-01-01T00:00:00.000Z",
  "location": "string",
  "attendees": [
    {
      "email": "string",
      "responseStatus": "needsAction"
    }
  ],
  "original": null
}
"Invalid provider"
"Organization not found"