更新时间:2023-02-14 13:04:38
我相信您的情况和目标如下.
I believe your situation and goal as follows.
drive
可以用于使用Drive API的文件:更新"方法.drive
can be used for using the method of "Files: update" of Drive API.为此,该修改如何?在这种情况下,请将请求正文包含在 requestBody
或 resource
中,如下所示.
For this, how about this modification? In this case, please include the request body to requestBody
or resource
as follows.
await drive.files.update({ fileId, requestBody: { trashed: true } });
或
await drive.files.update({ fileId, resource: { trashed: true } });