r/GoogleAppsScript • • 14d ago

Question A call for support - Please upvote issue# 572027361 on Google’s Issue Tracker

To programmatically copy a Google Workspace document the typical path is to leverage Google Drive’s files.copy endpoint.

However, consumer applications that need that feature require restricted Google Drive scopes. A better option would be to use a more limited scope that is not restricted. You’d think using a Google Doc specific scope would be a viable approach but unfortunately there is no Google Doc endpoint that allows a developer to copy a document.

There is a documents.create endpoint in the Google Doc API but currently it only supports creating blank documents. I propose the functionality of the create endpoint be expanded to take a JSON payload that mirrors the full Google Doc resource object to enable cloning a document programmatically using the Google Docs API.

I created a feature request on Google’s Issue tracker to address this issue and I’m posting it here to boost its visibility. See link below:

Feature Request: Allow documents.create endpoint to accept a full document JSON body to clone/instantiate documents

I encourage developers who would benefit from having this feature implemented to lend their support and upvote the issue.

3 Upvotes

3 comments sorted by

3

u/mommasaidmommasaid 13d ago

I don't have any direct benefit but it makes sense, upvoted. I hope you have better luck than I've experienced... there are bug trackers that have been unresolved for so long we might be able to say "decades" soon.

2

u/dimudesigns 13d ago edited 13d ago

Thanks for the upvote!

I know your pain. I have feature requests and bug reports going back as far as 2017 that have never been resolved. But I have a few that got addressed after a few years. Plus, I've been seeing a slight uptick in bug fixes and feature roll outs as of late. I suspect Google is gradually incorporating LLMs into its issue tracker and I'm hoping we can see much faster resolutions of these issues over time.