SheetProperties title = new SheetProperties().setSheetId(0).setTitle("Main") create a SheetProperty object and put there all your parameters (new title, sheet id, something else) This can also be implemented with Google API methods only. The link I added shows the way to change intricate properties of a worksheet, I will be updating my answer soon. If you are using a version 3 application and want to migrate, the link to that is here EDITĪ commentor noted that the second request does not change name of a worksheet. Notice the change from v3 to v4 in the URLs. In both requests, replace the spreadsheetId in the URL with the ID of the Google Sheet you are editing. ![]() (This is for the legacy version 3)įor the newer version, you can use a batch update via a POST http request from Python as well. You need to send some sort of metadata for the worksheet via HTTP.įor example, get the ID of the worksheet using Python, and send the following info: Your answer can be solved via a HTTP request from Python.
0 Comments
Leave a Reply. |