requests | array of object or string | Yes | - | List of raw Google Sheets API batchUpdate request objects (or a JSON array string), sent to Google as-is. Use this for anything the dedicated Sheets operations do not cover: cell formatting like colors and number formats (repeatCell), borders (updateBorders), merged cells (mergeCells), conditional formatting (addConditionalFormatRule), data validation (setDataValidation), frozen rows and columns (updateSheetProperties), column widths (updateDimensionProperties), and more; see Google’s Sheets API batchUpdate reference for all request types. Requests address cells by numeric sheetId plus zero-based row/column grid ranges (end indexes exclusive): call sheets_list_sheets first to get each sheet’s sheetId, and never guess it. Example: [{“repeatCell”: {“range”: {“sheetId”: 0, “startRowIndex”: 0, “endRowIndex”: 1, “startColumnIndex”: 0, “endColumnIndex”: 3}, “cell”: {“userEnteredFormat”: {“backgroundColor”: {“red”: 0.9, “green”: 0.93, “blue”: 1.0}, “textFormat”: {“bold”: true}}}, “fields”: “userEnteredFormat(backgroundColor,textFormat)”}}] |