I'm trying to create a new spreadsheet using gspread, and I want to be able to control where it ends up.
gc = gspread.authorize(credentials)
sheetname = 'Test sheet'
sheet = gc.create(sheetname)
I think that what's happening is that when I do gc.create(sheetname), it's making it in my Google service account, but I want it to end up in a specific folder in my normal account.
-
--Figured it out--
Needed to change to the following:
if parent_folder_ids:
body["parents"] = parent_folder_ids