After searching, the closest information I've found is this question. However, that answer covers just creating a Google Drive file, period. I would like to find out how to make that file get created in a specific folder.
Is this possible?
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.Sign up to join this community
I watched what happens when Google Docs creates a new document in a folder. The browser briefly goes to a create url. To make the url, you need to know your folder's id. If you navigate to the folder in a browser, its id is at the end of the url:
Copy the id, open a new browser tab, and paste the id onto the end of the create url, like so:
Press Enter, and the browser will go to your new document created in the folder identified in the url.
I know this thread has been quiet for a while, but it helped me.
I was able to accomplish this by:
getting the URL of the destination folder
taking the file's url
copyDestinationparam to the end
https://docs.google.com/[specific file URL]/edit
Final result would look like this:
https://docs.google.com/[specific file URL]/copy?copyDestination=[Folder ID]
I hope this helps!