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]])
| 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, |