title: Update a single cell of Google Sheets using JavaScript API
body: <p>I've followed this <a href="https://developers.google.com/sheets/quickstart/js" rel="noreferrer">tutorial</a> and I am able to successfully get it working to "get" data from the spreadsheet, but now I would like to update a single cell using just the JavaScript API.  I'm trying to use this JS method:</p>
  
  <pre><code>    gapi.client.sheets.spreadsheets.values.update({
        spreadsheetId: 'something',
        range: 'Sheet1!B2',
      })
  </code></pre>
  
  <p>But I'm not quite sure how to pass in the new cell value into the Request body.  I've tried my best to follow <a href="https://developers.google.com/sheets/reference/rest/v4/spreadsheets.values/update" rel="noreferrer">this</a> as a guide but I'm not quite sure how to use this.  I can't find any documentation around "gapi.client.sheets.spreadsheets.values.update" JavaScript API.  I get 400 errors back from the API with anything I've tried.</p>