googleSheets.updateTable() changes a native table’s name, range, columns, or native table colors.
Example
Inputs
Providespreadsheet, an existing table name or ID, and at least one update:
name: a new table namerange: a complete structured range withsheetand optional one-based inclusive row and column boundscolumns: a complete replacement array. Each column needs anameand atype:unspecified,number,currency,percent,date,time,dateTime,text,boolean,dropdown,file,person,finance,place, orrating. Onlydropdowncolumns accept and requireoptions.style: one or moreheaderColor,firstBandColor, orsecondBandColorupdates
{ theme } using text, background, accent1 through accent6, or link. Set a style property to null to restore its default. Google doesn’t reliably support adding or removing native table footers later. Second argument { account } selects the Google Account.
Output
Returns the current{ tableId, name, range, columns, style }. When replacing columns, align their count with the target range and existing data.