1
votes

I have a server needing to update a shared Google Sheet. It generates special tokens for offline use so doesn't work with PHP quickstart module.

I am trying to setup request in Postman for this action: https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/update

But get the following result: enter image description here

Is it possible to use HTTP for this API?

2

2 Answers

1
votes

Turns out I had to add ?valueInputOption=RAW on the end of my URL request and removed valueInputOption from the request body JSON.

0
votes

The valueInputOption should be passed as params to the POST URL, it should not be in the request body. Also the sheetID and the range should be sent in the URL. I suppose it should be a POST call not PUT.