The events.update() method replaces the event with the specified ID with the supplied object and updates the Queue component.
DayPilot.Queue.events.update(e);
dp.events.update({
id: 3,
text: "Task 3",
duration: DayPilot.Duration.ofDays(5)
});