You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
toki4004
2 years agoHelpful | Level 5
Error: property_groups: expected list, got string
I am trying to add property groups to a file with
https://content.dropboxapi.com/2/files/upload
and I am getting an error "HTTP header "Dropbox-API-Arg": property_groups: expected list, got stri...
- 2 years ago
toki4004 wrote:..., and now I want to view a folder list with items + see their properties. I get this error:
- "Error in call to API function "files/list_folder": request body: include_property_groups.filter_some: expected list, got string".
- Here is my code below. What format is expecting for "include_property_group"?
...
Even when you have one property group it should be a list with one entry, not just a single string, as you have passed. If you take a look on 'filter_some', you will see that expected type is list, not something else (list of ids, not just one id itself - even when it's alone). Wrap your id' string with array.
Здравко
2 years agoLegendary | Level 20
Hi toki4004,
It's a good idea to prototype API call when you are not sure about something. 😉 So you can easy find out all differences and what's wrong. In particular (for /2/files/upload) you can take a look here. Click on "Show Code" to see how the call look like. Most valuable for you may be the "HTTP request" form of view (PHP is not supported).
Good luck.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!