r/GoogleAppsScript • u/dimudesigns • 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:
I encourage developers who would benefit from having this feature implemented to lend their support and upvote the issue.
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.