Welcome to the Panopto Community

Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.

API for child folders and subfolders of child folders? (2020-01-09)

Caitlin McCabeCaitlin McCabe Administrator
edited February 2020 in API

Original Post: Alexandra Neubert, Moderator, January 9, 2020 at 11:53 AM

Is it possible to recursively fetch a list of all folders under a given folder? I see in your API documentation that there is a way to fetch immediate children, but I need to generate a list of all descendants.


Responses:

Joe Malmsten, Moderator, January 16, 2020 at 2:29 PM

Hi,

There is currently no way to generate a full hierarchy with a single Panopto API call. If you are using the REST API folders will only contain immediate children information. If you are using the SOAP API that will also only get immediate children.

The SOAP API can get 2 levels of children if you use GetFoldersList and use a folder Id as a 'ParentFolderId'. The call will retrieve only folders inside the 'ParentFolderId' folder, and those folders will contain direct child information.

For more information on our public API please see the links below:

(Learn about the Panopto API)

(Panopto REST API Folder endpoints)

(Panopto SOAP API SessionManagement class)

(Panopto SOAP API GetFoldersList)

(GetFoldersList request options)


Joe Malmsten, Moderator, January 16, 2020 at 2:31 PM

Apologies for the multiple replies, there are some problems adding links to this post.


Joe Malmsten, Moderator, January 16, 2020 at 2:33 PM

Here are the missing links from the original reply.

(Learn about the Panopto API)

https://support.panopto.com/s/article/api-0

(Panopto REST API Folder endpoints)

https://demo.hosted.panopto.com/Panopto/Api/Docs/index.html#/Folders

(Panopto SOAP API SessionManagement class)

https://support.panopto.com/resource/APIDocumentation/Help/html/ff2c30fe-1902-af6b-20c3-06d0f2bc13de.htm

(Panopto SOAP API GetFoldersList)

https://support.panopto.com/resource/APIDocumentation/Help/html/a9523c3a-86fe-a15f-b25b-099bfb64cf5f.htm

(GetFoldersList request options)

https://support.panopto.com/resource/APIDocumentation/Help/html/93a3f1b2-d5f2-0d2e-25f4-43aebd25109f.htm

Tagged:
Sign In or Register to comment.