We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 61d0935 + 2938298 commit 46569a6Copy full SHA for 46569a6
google-apps-script/drive-lock/code.js
@@ -8,7 +8,7 @@
8
const makeFileReadyOnly = () => {
9
const fileUrl = "https://docs.google.com/document/d/.....";
10
const [fileId] = fileUrl.split("/").filter((e) => /[_-\w]{25,}/.test(e));
11
- UrlFetchApp.fetch(`https://www.googleapis.com/drive/v3/files/${fileId}`, {
+ UrlFetchApp.fetch(`https://www.googleapis.com/drive/v3/files/${fileId}?supportsAllDrives=true`, {
12
method: "PATCH",
13
contentType: "application/json",
14
headers: {
0 commit comments