Bricksys 24/7 REST API, folder with children

Hi,
when retrieving folders on a project, and only specify project, I get all my folders as items, as expected:
https://my.bricsys247.com/api/rest/Folder?p=123
If I add children parameter, I expected that child folders were added, but then I get no items at all!
https://my.bricsys247.com/api/rest/Folder?p=123&children=true

Isn't there a way to include all subfolders, without having to traverse recursivly?
Or is it meant as a filter, i.e. only list folders with children?
I have tried on folders on different levels, with and without subfolders, but I always get empty result if I set children=true

A short description of the parameters in the API would be very welcome...

Comments

  • I found out by accident that if I add filter on document folders, i.e. &ftype=DOCUMENTS, to filter out dividers, then I get ALL folders, regardless of hierarchy, in a flat list. Unexpected, but exactly what I needed!
    I still don't know what the children-switch is for...

  • Jurgen Schepers
    edited February 2018

    The children switch is only used when you get details on a specific folder. E.g.:

    /api/rest/Folder?r=12345 => details of that folder

    /api/rest/Folder?r=12345&children=true => details of that folder and its children

This discussion has been closed.