Replies: 1 comment
-
Even though I am unable to provide any support for any API offered here, maybe someone else will find this question and will be able to help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using your google-drive3 package to upload a test CSV file to a team drive. However, my request fails with the following API error:
I am using a service account to upload to it. Sharing and using a non-team drive with this service account results in a successful upload.
I have been able to get past most of other API errors for Team Drives by setting the relevant settings to
None
. However, I am not able to find the relevant setting for this one.I am currently using the following for my requests:
Changing the
target_folder_id
variable from a shared team drive folder id to a shared non-team drive folder id results in a succesful upload, while it does not for the team drive folder due to the above error.Going through the documentation, I think I have to somehow end up with setting drive permissions to the
TeamDriveRestrictions
struct, but I was not able to see how this is set from the above code.Could you point me to a working example for this or to the right settings for doing this?
Beta Was this translation helpful? Give feedback.
All reactions