-
I'm using I don't know if this is expected behavior or not, but the fact that I'm able to pass a gridRange with independent lengths for width and height seems to suggest that its not. Is this a bug or expected? Example request body values = [ ['X', 'X', 'X'], ] body = { "valueInputOption": 'USER_ENTERED', "data": [ {"dataFilter": { 'gridRange': { 'sheetId': id_sheet, 'startRowIndex': 0, 'endRowIndex': 1, 'startColumnIndex': 0, 'endColumnIndex': 3, }, }, "values": values} ] } results in a 400 with this response
For this example I have to increment the I can see in the documentation, the only examples are for square, half-bounded, or fully unbounded ranges. UPDATE
v2.62.0 / Python 3.10 on Windows 10 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I've got the same problem with versions 2.128.0 and 2.147.0, and by trial and error, I have found that it is fixed by specifying the values = [ ['X', 'X', 'X'], ] body = { "valueInputOption": 'USER_ENTERED', "data": [{ "dataFilter": { 'gridRange': { 'sheetId': id_sheet, 'startRowIndex': 0, 'endRowIndex': 1, 'startColumnIndex': 0, 'endColumnIndex': 3, }, }, "majorDimension": 'ROWS', # <-- THIS "values": values }] } |
Beta Was this translation helpful? Give feedback.
I've got the same problem with versions 2.128.0 and 2.147.0, and by trial and error, I have found that it is fixed by specifying the
majorDimension
of theDataFilterValueRange
. So in your case that would be: