updateEvent(updatedEvent, options)

Updates an event in the device’s calendar.

Using updateEvent() is an inherently dangerous action, as it allows event data to be irreversibly altered. Use caution when using this functionality in your component. At an absolute minimum, consider adding a confirmation window for your users that clearly states the outcome of the action, with an option for them to cancel if they wish.

  • updatedEvent—(Required) An Event object with updated data to replace the existing data in the corresponding event on the device’s calendar.
  • options—(Required) A CalendarServiceOptions object to configure the CalendarService request.

A Promise object that resolves as a coerced version of the Event parameter. If an error is encountered, an error message is returned.

Use this function to update an event on a device’s calendar.

For more information on when and why CalendarService coerces (changes) event data, see Implicit Data Coercion.

See Also