0

Code mentioned in https://developers.google.com/drive/api/v3/folder works for My Drive. No luck Using:

file_metadata = { 'supportsAllDrives':True, 'driveId': '0AGRl', 'name': "new folderrrrr", 'mimeType': 'application/vnd.google-apps.folder', } file = DRIVE.files().create(body=file_metadata, fields='id', supportsAllDrives=True, supportsTeamDrives=True).execute()``` 

1 Answer 1

1

Replace

'driveId': '0AGRl'

through

"parents": ["0AGRl"]

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you. I have a requirement to create the subfolder in the shared drive. Help is appreciated!!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.