All 17 methods of the Sheets API, rendered at build time from the committed Discovery index the grr binary embeds — the same data grr api describe reads at runtime. Flags are kebab-cased parameter names: userId is --user-id.
Applies one or more updates to the spreadsheet. Each request is validated before being applied. If any request is not valid then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. The replies will mirror the requests. For example, if you applied 4 updates and the 3rd one had a reply, then the response will have 2 empty replies, the actual reply, and another empty reply, in that order. Due to the collaborative nature of spreadsheets, it is not guaranteed that the spreadsheet will reflect exactly your chan
Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within grids is not returned. You can include grid data in one of 2 ways: * Specify a field mask listing your desired fields using the fields URL parameter in HTTP * Set the includeGridData URL parameter to true. If a field mask is set, the includeGridData parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want. To retrieve only subsets of spreadshee
Parameter
Type
Required
Repeated
Location
Description
Enum values
commentsViewMode
string
—
—
query
The comments view mode to apply to the spreadsheet. This allows viewing the spreadsheet with comments omitted or included. If one is not specified, COMMENTS_VIE
Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. For more information, see Read, write, and search metadata. This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include gri
Returns the developer metadata with the specified ID. The caller must specify the spreadsheet ID and the developer metadata's unique metadataId. For more information, see Read, write, and search metadata.
Parameter
Type
Required
Repeated
Location
Description
Enum values
metadataId
integer
yes
—
path
The ID of the developer metadata to retrieve.
—
spreadsheetId
string
yes
—
path
The ID of the spreadsheet to retrieve metadata from.
Returns all developer metadata matching the specified DataFilter. For more information, see Read, write, and search metadata. If the provided DataFilter represents a DeveloperMetadataLookup object, this will return all DeveloperMetadata entries selected by it. If the DataFilter represents a location in a spreadsheet, this will return all developer metadata associated with locations intersecting that region.
Parameter
Type
Required
Repeated
Location
Description
Enum values
spreadsheetId
string
yes
—
path
The ID of the spreadsheet to retrieve metadata from.
Appends values to a spreadsheet. The input range is used to search for existing data and find a "table" within that range. Values will be appended to the next row of the table, starting with the first column of the table. See the guide and sample code for specific details of how tables are detected and data is appended. The caller must specify the spreadsheet ID, range, and a valueInputOption. The valueInputOption only contro
Parameter
Type
Required
Repeated
Location
Description
Enum values
includeValuesInResponse
boolean
—
—
query
Determines if the update response should include the values of the cells that were appended. By default, responses do not include the updated values.
—
insertDataOption
string
—
—
query
How the input data should be inserted.
OVERWRITE · INSERT_ROWS
range
string
yes
—
path
The A1 notation of a range to search for a logical table of data. Values are appended
—
responseDateTimeRenderOption
string
—
—
query
Determines how dates, times, and durations in the response should be rendered. This is ignored if response_value_render_option is FORMATTED_VALUE. The default d
SERIAL_NUMBER · FORMATTED_STRING
responseValueRenderOption
string
—
—
query
Determines how values in the response should be rendered. The default render option is FORMATTED_VALUE.
FORMATTED_VALUE · UNFORMATTED_VALUE · FORMULA
spreadsheetId
string
yes
—
path
The ID of the spreadsheet to update.
—
valueInputOption
string
—
—
query
How the input data should be interpreted.
INPUT_VALUE_OPTION_UNSPECIFIED · RAW · USER_ENTERED
Clears one or more ranges of values from a spreadsheet. The caller must specify the spreadsheet ID and one or more ranges. Only values are cleared -- all other properties of the cell (such as formatting and data validation) are kept.
Clears one or more ranges of values from a spreadsheet. For more information, see Read, write, and search metadata. The caller must specify the spreadsheet ID and one or more DataFilters. Ranges matching any of the specified data filters will be cleared. Only values are cleared -- all other properties of the cell (such as formatting, data validation, etc.) are kept.
Returns one or more ranges of values from a spreadsheet. The caller must specify the spreadsheet ID and one or more ranges.
Parameter
Type
Required
Repeated
Location
Description
Enum values
dateTimeRenderOption
string
—
—
query
How dates, times, and durations should be represented in the output. This is ignored if value_render_option is FORMATTED_VALUE. The default dateTime render opti
SERIAL_NUMBER · FORMATTED_STRING
majorDimension
string
—
—
query
The major dimension that results should use. For example, if the spreadsheet data is: A1=1,B1=2,A2=3,B2=4, then requesting ranges=["A1:B2"],majorDimension=RO
DIMENSION_UNSPECIFIED · ROWS · COLUMNS
ranges
string
—
yes
query
The A1 notation or R1C1 notation of the range to retrieve values from.
—
spreadsheetId
string
yes
—
path
The ID of the spreadsheet to retrieve data from.
—
valueRenderOption
string
—
—
query
How values should be represented in the output. The default render option is ValueRenderOption.FORMATTED_VALUE.
Returns one or more ranges of values that match the specified data filters. For more information, see Read, write, and search metadata. The caller must specify the spreadsheet ID and one or more DataFilters. Ranges that match any of the data filters in the request will be returned.
Sets values in one or more ranges of a spreadsheet. For more information, see Read, write, and search metadata. The caller must specify the spreadsheet ID, a valueInputOption, and one or more DataFilterValueRanges.
Clears values from a spreadsheet. The caller must specify the spreadsheet ID and range. Only values are cleared -- all other properties of the cell (such as formatting, data validation, etc..) are kept.
Parameter
Type
Required
Repeated
Location
Description
Enum values
range
string
yes
—
path
The A1 notation or R1C1 notation of the values to clear.
Returns a range of values from a spreadsheet. The caller must specify the spreadsheet ID and a range.
Parameter
Type
Required
Repeated
Location
Description
Enum values
dateTimeRenderOption
string
—
—
query
How dates, times, and durations should be represented in the output. This is ignored if value_render_option is FORMATTED_VALUE. The default dateTime render opti
SERIAL_NUMBER · FORMATTED_STRING
majorDimension
string
—
—
query
The major dimension that results should use. For example, if the spreadsheet data in Sheet1 is: A1=1,B1=2,A2=3,B2=4, then requesting range=Sheet1!A1:B2?major
DIMENSION_UNSPECIFIED · ROWS · COLUMNS
range
string
yes
—
path
The A1 notation or R1C1 notation of the range to retrieve values from.
—
spreadsheetId
string
yes
—
path
The ID of the spreadsheet to retrieve data from.
—
valueRenderOption
string
—
—
query
How values should be represented in the output. The default render option is FORMATTED_VALUE.
Sets values in a range of a spreadsheet. The caller must specify the spreadsheet ID, range, and a valueInputOption.
Parameter
Type
Required
Repeated
Location
Description
Enum values
includeValuesInResponse
boolean
—
—
query
Determines if the update response should include the values of the cells that were updated. By default, responses do not include the updated values. If the rang
—
range
string
yes
—
path
The A1 notation of the values to update.
—
responseDateTimeRenderOption
string
—
—
query
Determines how dates, times, and durations in the response should be rendered. This is ignored if response_value_render_option is FORMATTED_VALUE. The default d
SERIAL_NUMBER · FORMATTED_STRING
responseValueRenderOption
string
—
—
query
Determines how values in the response should be rendered. The default render option is FORMATTED_VALUE.
FORMATTED_VALUE · UNFORMATTED_VALUE · FORMULA
spreadsheetId
string
yes
—
path
The ID of the spreadsheet to update.
—
valueInputOption
string
—
—
query
How the input data should be interpreted.
INPUT_VALUE_OPTION_UNSPECIFIED · RAW · USER_ENTERED