Menu
Sheets.spreadsheets.values.batch Update
Sets values in one or more ranges of a spreadsheet. The caller must specify the spreadsheet ID, a valueInputOption, and one or more ValueRanges.
POST
/v4/spreadsheets/{spreadsheetId}/values:batchUpdateUse it in a workflow
- Add a step and choose the Google Sheets connector.
- Pick the Sheets.spreadsheets.values.batch Update action (under spreadsheets).
- Fill in the fields below, then reference the result from later steps as
{{sheetsSpreadsheetsValuesBatchUpdate.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": [
{
"majorDimension": "DIMENSION_UNSPECIFIED",
"range": "string",
"values": [
[
null
]
]
}
],
"includeValuesInResponse": false,
"responseDateTimeRenderOption": "SERIAL_NUMBER",
"responseValueRenderOption": "FORMATTED_VALUE",
"valueInputOption": "INPUT_VALUE_OPTION_UNSPECIFIED"
}
Response
Returns 200 with an object. Read it in later steps with {{sheetsSpreadsheetsValuesBatchUpdate.response.data.<field>}}.
{
"responses": [
{
"spreadsheetId": "string",
"updatedCells": 0,
"updatedColumns": 0,
"updatedData": {
"majorDimension": "DIMENSION_UNSPECIFIED",
"range": "string",
"values": [
[
null
]
]
},
"updatedRange": "string",
"updatedRows": 0
}
],
"spreadsheetId": "string",
"totalUpdatedCells": 0,
"totalUpdatedColumns": 0,
"totalUpdatedRows": 0,
"totalUpdatedSheets": 0
}
Need more? See the Google Sheets guide for connection setup and behaviour shared by every action.
Was this page helpful?