Daniel
Daniel

Reputation: 89

Google Drive API to get folder list using Parent Id

I am trying to get all folders under a google drive folder using parent folder id

using below api

content.googleapis.com/drive/v3/files/

passing parent id in request body

am able to create files and folders under parent id, but when try to get folder list in parent folder its giving me error as bad request

Note: I am using postman tool

Upvotes: 1

Views: 1643

Answers (1)

ziganotschka
ziganotschka

Reputation: 26796

If you want to use a query when listing results, the syntax is '1234567' in parents, not parents=1234567

In your case, the correct syntax would be something like

https://www.googleapis.com/drive/v3/files?q=%2710oCPwjGlp8ArZGP0nk2jnvztniaCRdH4%27%20in%20parents

Upvotes: 2

Related Questions