Skip to main content
createSpreadsheet creates a new workbook owned by the connected account.

Example

Inputs

title is required. Optional locale, IANA timeZone, and autoRecalc (onChange, minutely, hourly) set spreadsheet properties. sheets is a non-empty array of initial sheet definitions with title and optional rowCount, columnCount, frozen counts, and hidden. Omit it for Google’s default sheet. account selects the Google account.

Output

Returns the complete created Spreadsheet; see Get spreadsheet. Keep spreadsheetId or url for later actions.