Update an Event
PUT
/api/v1/calendar/events/{id}
const url = 'https://example.com/api/v1/calendar/events/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"icalendar":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/calendar/events/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "icalendar": "example" }'Requires a signed-in User. It replaces the Event on the provider and updates the cached Event. It returns 409 with the latest Event when the provider copy changed. Route: /api/v1/calendar/events/{id}. Inputs: id. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
icalendar
required
string
Examplegenerated
{ "icalendar": "example"}Responses
Section titled “Responses”Media typeapplication/json
object
event
required
object
all_day
required
boolean
calendar_id
required
string
end
string | null
etag
required
string
id
required
string
location
string | null
start
string | null
summary
required
string
tags
required
Array<string>
timezone
string | null
uid
string | null
updated_at
required
string
icalendar
required
string
Examplegenerated
{ "event": { "all_day": true, "calendar_id": "example", "end": "example", "etag": "example", "id": "example", "location": "example", "start": "example", "summary": "example", "tags": [ "example" ], "timezone": "example", "uid": "example", "updated_at": "example" }, "icalendar": "example"}Media typeapplication/json
object
error
required
latest
required
object
event
required
object
all_day
required
boolean
calendar_id
required
string
end
string | null
etag
required
string
id
required
string
location
string | null
start
string | null
summary
required
string
tags
required
Array<string>
timezone
string | null
uid
string | null
updated_at
required
string
icalendar
required
string
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}