title: 401 Error - Unauthorized - when trying to POST to a public Google Sheet using the v4 Sheets API
body: <p>In another stackoverflow question, the questioner described the following scenario. I am quoting his earlier question because I am having the same issue when I try to POST to a Sheet. GET works fine. I can not tell from the prior questions discussion whether it was actually resolved relative to POST requests.</p>
  
  <p>"I'm having no luck getting a response from v4 of the Google Sheets API when running against a public spreadsheet.</p>
  
  <p>The relevant documentation states:</p>
  
  <p>"If the request doesn't require authorization (such as a request for public data), then the application must provide either the API key or an OAuth 2.0 token, or both—whatever option is most convenient for you."</p>
  
  <p>And to provide the API key, the documentation states:</p>
  
  <p>"After you have an API key, your application can append the query parameter key=yourAPIKey to all request URLs."</p>
  
  <p>So, I should be able to get a response listing the sheets in a public spreadsheet at the following URL:</p>
  
  <p><a href="https://sheets.googleapis.com/v4/spreadsheets/" rel="nofollow noreferrer">https://sheets.googleapis.com/v4/spreadsheets/</a>{spreadsheetId}?key={myAPIkey}</p>
  
  <p>(with, obviously, the id and key supplied in the path and query string respectively)</p>
  
  <p>However, when I do this, I get an HTTP 401 response."</p>
  
  <p>Is it possible to use an APIkey based access (rather than Oauth2) to POST to a Google Sheet using the v4 Sheets API?</p>