title: Google Sheets API v4 Values.update syntax
body: <p>Cannot get the right/correct syntax for <code>Values.update</code>, there is no examples of code for Google Apps Script on Google documentation. Tried to use the code pattern from <code>batchUpdate</code> limiting the range to one but it is not working. Could anyone please advise the correct syntax for <code>Values.update</code>? Here is the code:</p>
  
  <pre><code>function updateOneCell() {
    var spreadsheetId = "someSpreadsheetId";
    var request = {
      "valueInputOption": "USER_ENTERED",
      "data": [
        {
          "range": "Sheet1!BW7",
          "majorDimension": "ROWS",
          "values": [[new Date()]]
        }
      ]
    };
    Sheets.Spreadsheets.Values.update(request, spreadsheetId);
  }
  </code></pre>
  
  <p>It is giving the following error:</p>
  
  <blockquote>
    <p>Invalid number of arguments provided. Expected 3-4 only</p>
  </blockquote>
  
  <p>Thank you.</p>