We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

toki4004's avatar
toki4004
Helpful | Level 5
2 years ago

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...
  • Здравко's avatar
    Здравко
    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.