How to update plot data but keep the styling?

Hi all,

Is there a way to update plot data through the API, but keep any trace/layout properties that I have carefully configured in the UI? This seems like a very logical thing to do: just push raw graph data through the API, without having to worry about how it’s displayed.

Is this presently possible? Fileopt ‘replace’ seems to reset any configuration, while ‘append’ and ‘extend’ can only add columns/rows to the data, instead of replacing it altogether.

Thanks all!