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.

The return values of the SOAP API

I would like to know about the return values of the SOAP API.

For example, ISessionManagement.AddFolder Method has the Return Value, but IAccessManagement.GrantGroupAccessToFolder Method don't.

[Questions]

1. What happens if the process succeeds if the method have no the Return Value ? How I know the prosess succeed?

2. If the method with a Return Value fails, does an exception be returned?

3. If the method with no Return Value fails, does an exception be returned?


*AddFolder Method

https://support.panopto.com/resource/APIDocumentation/Help/html/b699d686-1146-3402-6739-31c59cc50e20.htm

*GrantGroupAccessToFolder Method

https://support.panopto.com/resource/APIDocumentation/Help/html/83a83ca4-af47-d860-e477-8a1f36dfc86b.htm

Tagged:

Best Answer

  • Joe MalmstenJoe Malmsten Panopto Employee
    Answer ✓

    Hi,

    1. If the process succeeds but the method has no return value you can assume the call succeeded as long as the calls http status is a 200 and no errors were thrown.
    2. If a method with a return value fails it should generally throw an exception or return an HTTP status indicating a failure.
    3. If a method with no return value fails it should generally throw an exception or the call HTTP status should indicate its not a 200.

    Thanks,

    Joe

Sign In or Register to comment.