Stay organized with collections
Save and categorize content based on your preferences.
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 changes after this completes,
however it is guaranteed that the updates in the request will be applied
together atomically. Your changes may be altered with respect to
collaborator changes. If there are no collaborators, the spreadsheet
should reflect your changes.
Arguments
Parameters
spreadsheetId
string
Required. The spreadsheet to apply the updates to.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],null,["# Method: googleapis.sheets.v4.spreadsheets.batchUpdate\n\nApplies one or more updates to the spreadsheet. Each request is\nvalidated before being applied. If any request is not valid then the\nentire request will fail and nothing will be applied. Some requests have\nreplies to give you some information about how they are applied. The\nreplies will mirror the requests. For example, if you applied 4 updates\nand the 3rd one had a reply, then the response will have 2 empty\nreplies, the actual reply, and another empty reply, in that order. Due\nto the collaborative nature of spreadsheets, it is not guaranteed that\nthe spreadsheet will reflect exactly your changes after this completes,\nhowever it is guaranteed that the updates in the request will be applied\ntogether atomically. Your changes may be altered with respect to\ncollaborator changes. If there are no collaborators, the spreadsheet\nshould reflect your changes.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`BatchUpdateSpreadsheetResponse`](https://cloud.google.com/workflows/docs/reference/googleapis/sheets/v4/Overview#BatchUpdateSpreadsheetResponse).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate). \n\n### YAML\n\n```yaml\n- batchUpdate:\n call: googleapis.sheets.v4.spreadsheets.batchUpdate\n args:\n spreadsheetId: ...\n body:\n includeSpreadsheetInResponse: ...\n requests: ...\n responseIncludeGridData: ...\n responseRanges: ...\n result: batchUpdateResult\n```\n\n### JSON\n\n```json\n[\n {\n \"batchUpdate\": {\n \"call\": \"googleapis.sheets.v4.spreadsheets.batchUpdate\",\n \"args\": {\n \"spreadsheetId\": \"...\",\n \"body\": {\n \"includeSpreadsheetInResponse\": \"...\",\n \"requests\": \"...\",\n \"responseIncludeGridData\": \"...\",\n \"responseRanges\": \"...\"\n }\n },\n \"result\": \"batchUpdateResult\"\n }\n }\n]\n```"]]