- spreadsheets
- /v4/spreadsheetsPOST
- /v4/spreadsheets/{spreadsheetId}GET
- /v4/spreadsheets/{spreadsheetId}/developerMetadata/{metadataId}GET
- /v4/spreadsheets/{spreadsheetId}/developerMetadata:searchPOST
- /v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyToPOST
- /v4/spreadsheets/{spreadsheetId}/values/{range}GET
- /v4/spreadsheets/{spreadsheetId}/values/{range}PUT
- /v4/spreadsheets/{spreadsheetId}/values/{range}:appendPOST
- /v4/spreadsheets/{spreadsheetId}/values/{range}:clearPOST
- /v4/spreadsheets/{spreadsheetId}/values:batchClearPOST
- /v4/spreadsheets/{spreadsheetId}/values:batchClearByDataFilterPOST
- /v4/spreadsheets/{spreadsheetId}/values:batchGetGET
- /v4/spreadsheets/{spreadsheetId}/values:batchGetByDataFilterPOST
- /v4/spreadsheets/{spreadsheetId}/values:batchUpdatePOST
- /v4/spreadsheets/{spreadsheetId}/values:batchUpdateByDataFilterPOST
- /v4/spreadsheets/{spreadsheetId}:batchUpdatePOST
- /v4/spreadsheets/{spreadsheetId}:getByDataFilterPOST
/v4/spreadsheets
POST
/v4/spreadsheets
spreadsheets
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sheets.googleapis.com//v4/spreadsheets' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
Request
Body Params application/json
Resource that represents a spreadsheet.
dataSources
array[object (DataSource) {4}]
optional
calculatedColumns
array[object (DataSourceColumn) {2}]
optional
dataSourceId
string
optional
sheetId
integer <int32>
optional
spec
object (DataSourceSpec)
optional
developerMetadata
array [object]
optional
namedRanges
array[object (NamedRange) {3}]
optional
name
string
optional
namedRangeId
string
optional
range
object
optional
properties
object (SpreadsheetProperties)
optional
autoRecalc
enum<string>
optional
Allowed values:
RECALCULATION_INTERVAL_UNSPECIFIEDON_CHANGEMINUTEHOUR
defaultFormat
object (CellFormat)
optional
iterativeCalculationSettings
object (IterativeCalculationSettings)
optional
locale
string
optional
en
* an ISO 639-2 language code such as fil
, if no 639-1 code exists * a combination of the ISO language code and country code, such as en_US
Note: when updating this field, not all locales/languages are supported.spreadsheetTheme
object (SpreadsheetTheme)
optional
timeZone
string
optional
America/New_York
. If the time zone isn't recognized, this may be a custom time zone such as GMT-07:00
.title
string
optional
sheets
array[object (Sheet) {13}]
optional
bandedRanges
array[object (BandedRange) {4}]
optional
basicFilter
object (BasicFilter)
optional
charts
array[object (EmbeddedChart) {4}]
optional
columnGroups
array[object (DimensionGroup) {3}]
optional
conditionalFormats
array[object (ConditionalFormatRule) {3}]
optional
data
array[object (GridData) {5}]
optional
Sheet1
, and the spreadsheet was requested with ranges Sheet1!A1:C10
and Sheet1!D15:E20
, then the first GridData will have a startRow/startColumn of 0
, while the second one will have startRow 14
(zero-based row 15), and startColumn 3
(zero-based column D). For a DATA_SOURCE sheet, you can not request a specific range, the GridData contains all the values.developerMetadata
array [object]
optional
filterViews
array[object (FilterView) {7}]
optional
merges
array [object]
optional
properties
object (SheetProperties)
optional
protectedRanges
array[object (ProtectedRange) {8}]
optional
rowGroups
array[object (DimensionGroup) {3}]
optional
slicers
array[object (Slicer) {3}]
optional
spreadsheetId
string
optional
spreadsheetUrl
string
optional
Examples
Responses
🟢200Successful response
application/json
Body
Resource that represents a spreadsheet.
dataSourceSchedules
array[object (DataSourceRefreshSchedule) {6}]
read-onlyoptional
dailySchedule
object (DataSourceRefreshDailySchedule)
optional
enabled
boolean
optional
monthlySchedule
object (DataSourceRefreshMonthlySchedule)
optional
nextRun
object (Interval)
optional
refreshScope
enum<string>
optional
Allowed values:
DATA_SOURCE_REFRESH_SCOPE_UNSPECIFIEDALL_DATA_SOURCES
weeklySchedule
object (DataSourceRefreshWeeklySchedule)
optional
dataSources
array[object (DataSource) {4}]
optional
calculatedColumns
array[object (DataSourceColumn) {2}]
optional
dataSourceId
string
optional
sheetId
integer <int32>
optional
spec
object (DataSourceSpec)
optional
developerMetadata
array [object]
optional
namedRanges
array[object (NamedRange) {3}]
optional
name
string
optional
namedRangeId
string
optional
range
object
optional
properties
object (SpreadsheetProperties)
optional
autoRecalc
enum<string>
optional
Allowed values:
RECALCULATION_INTERVAL_UNSPECIFIEDON_CHANGEMINUTEHOUR
defaultFormat
object (CellFormat)
optional
iterativeCalculationSettings
object (IterativeCalculationSettings)
optional
locale
string
optional
en
* an ISO 639-2 language code such as fil
, if no 639-1 code exists * a combination of the ISO language code and country code, such as en_US
Note: when updating this field, not all locales/languages are supported.spreadsheetTheme
object (SpreadsheetTheme)
optional
timeZone
string
optional
America/New_York
. If the time zone isn't recognized, this may be a custom time zone such as GMT-07:00
.title
string
optional
sheets
array[object (Sheet) {13}]
optional
bandedRanges
array[object (BandedRange) {4}]
optional
basicFilter
object (BasicFilter)
optional
charts
array[object (EmbeddedChart) {4}]
optional
columnGroups
array[object (DimensionGroup) {3}]
optional
conditionalFormats
array[object (ConditionalFormatRule) {3}]
optional
data
array[object (GridData) {5}]
optional
Sheet1
, and the spreadsheet was requested with ranges Sheet1!A1:C10
and Sheet1!D15:E20
, then the first GridData will have a startRow/startColumn of 0
, while the second one will have startRow 14
(zero-based row 15), and startColumn 3
(zero-based column D). For a DATA_SOURCE sheet, you can not request a specific range, the GridData contains all the values.developerMetadata
array [object]
optional
filterViews
array[object (FilterView) {7}]
optional
merges
array [object]
optional
properties
object (SheetProperties)
optional
protectedRanges
array[object (ProtectedRange) {8}]
optional
rowGroups
array[object (DimensionGroup) {3}]
optional
slicers
array[object (Slicer) {3}]
optional
spreadsheetId
string
optional
spreadsheetUrl
string
optional