-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google sheet API v4 - batchUpdate provide error : Invalid JSON. Unknown name "data". #588
Comments
Yup, I had the same problem. Check what API call you're making; you're calling |
@marcantoineTrehin Like @ehgoodenough said, you probably mean to be calling |
Getting the same error. Same code above but using |
The payload of the request (not the parameters) need to be nested under a var options = {
auth: auth,
spreadsheetId: spreadSheetId,
resource: {
valueInputOption: "RAW",
data: [
{
range: "MyRange",
majorDimension: majorDimension,
values: [0,0,0,1,2,3]
}
]
}
};
spreadsheets.values, batchUpdate(options, function(err, res) {
console.log(res);
console.log(err);
}); |
Here are more examples of how to call Feel free to file an issue on our Spreadsheets examples if you find problems there. |
@jmdobry: Thank you!! I use the nodejs Google API library and using |
I got this error by using UrlFetchApp (i.e. the REST API). Turns out I had forgotten to |
I got an error by executing the
batchUpdate
function :The error is the following :
Im using Google sheet API v4.
'data' should exist in request following the documentation :
https://developers.google.com/sheets/samples/writing#write_to_multiple_ranges
The text was updated successfully, but these errors were encountered: