MCPcopy
hub / github.com/burnash/gspread / batch_update

Method batch_update

gspread/http_client.py:130–141  ·  view source on GitHub ↗

Lower-level method that directly calls `spreadsheets/ :batchUpdate `_. :param dict body: `Batch Update Request body <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate#re

(self, id: str, body: Optional[Mapping[str, Any]])

Source from the content-addressed store, hash-verified

128 raise APIError(response)
129
130 def batch_update(self, id: str, body: Optional[Mapping[str, Any]]) -> Any:
131 """Lower-level method that directly calls `spreadsheets/<ID>:batchUpdate <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate>`_.
132
133 :param dict body: `Batch Update Request body <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate#request-body>`_.
134 :returns: `Batch Update Response body <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate#response-body>`_.
135 :rtype: dict
136
137 .. versionadded:: 3.0
138 """
139 r = self.request("post", SPREADSHEET_BATCH_UPDATE_URL % id, json=body)
140
141 return r.json()
142
143 def values_update(
144 self,

Callers

nothing calls this directly

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected