"Get Folders" API Endpoint - Not returning folders that are children of programs

Gil_Turetsky
Level 1

"Get Folders" API Endpoint - Not returning folders that are children of programs

This is regarding the Get Folders endpoint:

https://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Folders/getFo...

 

If I hit the API with no root specified:

https://<instance>.mktorest.com/rest/asset/v1/folders.json?maxDepth=1000&maxReturn=200&offset=0

after iterating through the offsets/pages, I would expect to get all the folders in my Marketo instance.

 

I am finding, however, that any folders that are children of programs are not returned.

 

Example path: Folder 1 (folder) / Folder 2 (folder) / Program 1 (program) / Folder 3 (folder)

 

This API endpoint will not return Folder 3 unless I specifically query the endpoint above with that folder as the root node.

 

Has anyone else run into this?