"Get Folders" API Endpoint - Not returning folders that are children of programs | Community
Skip to main content
Gil_Turetsky
New Participant
July 27, 2020
Question

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

  • July 27, 2020
  • 0 replies
  • 945 views

This is regarding the Get Folders endpoint:

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

 

If I hit the API with no root specified:

<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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.