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)e (DayPilot.Event or raw object) - event to update
The supplied object replaces the current Queue item with the same ID, letting you refresh the rendered event using new data.
dp.events.update({
id: 3,
text: "Task 3",
duration: DayPilot.Duration.ofDays(5)
});