Update Event
Update an event for a user for a specific calendar and provider
Authorization
Authorization
RequiredBearer <token>The Recal API token
In: header
Request Body
application/json
Requiredevent
RequiredobjectPath Parameters
userId
Requiredstringprovider
RequiredstringCalendar provider (google or microsoft)
Pattern:
"^(google|microsoft)$"
calendarId
RequiredstringeventId
RequiredstringQuery Parameters
timeZone
stringDefault:
"UTC"
Response Body
TypeScript Definitions
Use the response body type in TypeScript.
id
RequiredstringmetaId
stringsubject
stringdescription
stringstart
Date | string | numberend
Date | string | numberlocation
stringattendees
Requiredarray<Any properties in object,object>original
RequiredunknownTypeScript Definitions
Use the response body type in TypeScript.
response
RequiredstringTypeScript Definitions
Use the response body type in TypeScript.
response
Requiredstringcurl -X PUT "https://api.recal.dev/v1/users/string/calendar/events/string/string/string?timeZone=UTC" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"event": {
"id": "string",
"subject": "string",
"description": "string",
"start": "1970-01-01T00:00:00.000Z",
"end": "1970-01-01T00:00:00.000Z",
"location": "string",
"attendees": [
{
"email": "string"
}
],
"sendNotifications": true,
"meeting": true
}
}'
const body = JSON.stringify({
"event": {
"id": "string",
"subject": "string",
"description": "string",
"start": "1970-01-01T00:00:00.000Z",
"end": "1970-01-01T00:00:00.000Z",
"location": "string",
"attendees": [
{
"email": "string"
}
],
"sendNotifications": true,
"meeting": true
}
})
fetch("https://api.recal.dev/v1/users/string/calendar/events/string/string/string?timeZone=UTC", {
headers: {
"Authorization": "Bearer <token>"
},
body
})
package main
import (
"fmt"
"net/http"
"io/ioutil"
"strings"
)
func main() {
url := "https://api.recal.dev/v1/users/string/calendar/events/string/string/string?timeZone=UTC"
body := strings.NewReader(`{
"event": {
"id": "string",
"subject": "string",
"description": "string",
"start": "1970-01-01T00:00:00.000Z",
"end": "1970-01-01T00:00:00.000Z",
"location": "string",
"attendees": [
{
"email": "string"
}
],
"sendNotifications": true,
"meeting": true
}
}`)
req, _ := http.NewRequest("PUT", url, body)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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"
body = {
"event": {
"id": "string",
"subject": "string",
"description": "string",
"start": "1970-01-01T00:00:00.000Z",
"end": "1970-01-01T00:00:00.000Z",
"location": "string",
"attendees": [
{
"email": "string"
}
],
"sendNotifications": true,
"meeting": true
}
}
response = requests.request("PUT", url, json = body, headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
})
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"