how to create a personal folder via de SOAP/REST api
Hi,
Using the soap service, we can successfully create users dynamically.
Now we would like to dynamically create a persnal folder for these users via the API.
I have tried the REST api (POST /Panopto/api/v1/folders), but no luck there:
request
{"Name":"test","Description":"test2","Parent":"<guid of Users folder>"}
response:
{"Error":{"ErrorCode":"","Message":"createValue must be provided","Success":false,"ErrorSource":null}}
We do not want to use the webinterface because we have a high number of users, and want to automate this process.
Any ideas on how to do this?
Best Answers
-
Kevin Baum Panopto Employee
Hi Kevin,
You can use the SOAP API to retrieve or create a user's personal folder. You can use the ISessionManagement.GetPersonalFolderForUser SOAP endpoint, which will create a personal folder for a user, if one doesn't already exist, when called by either that user or by a user with the administrator role in Panopto. The endpoint will return the user's personal folder whether it already existed or if it was created.
I hope that this helps. Please let me know if you have any other questions.
Thanks,
Kevin
0 -
Eric Phetteplace Whiz Kid
Sorry, if it's not clear, the WSDL for your instance will be at https://{HOST}/Panopto/PublicAPI/4.6/SessionManagement.svc?wsdl for the SessionManagement interface, for instance.
0
Answers
hi Kevin,
Thank you for your response,
do you know where I can find the WSDL of this Soap Service?
Regards,
Kevin
@Kevin Rijs there's a description of the SOAP API here with the signatures of all the methods: https://support.panopto.com/resource/APIDocumentation/Help/html/c40c21c6-dc7a-d822-8c99-b276ee8337c2.htm
All the interfaces are prefixed with an I and end in Interface. It might take some browsing to find exactly what you need. There are multiple versions of the ISessionManagementInterface but this is the one with the personal folder methods: https://support.panopto.com/resource/APIDocumentation/Help/html/475b10f6-077c-956c-289f-a4fd875da629.htm