Session Copy - Allowed API Client Types
We are trying to build a workflow to assist Canvas users to copy Panopto content between courses. This requires an automated process to undertake the copy.
We have found the sessioncopy Rest API and this would be beneficial, however I have not been successful in testing this without user interaction ('Server Side Web Application' API Type).
Is there any Service authentication API Client type that can be used to execute this sessioncopy API.
So far I get forbidden using the 'User Based Server Application' or 'Server Application' API Client types. If there is another option that does not require user interaction, please provide the details here of what the grant type, scope etc are required in order to obtain a token with the relevant access.
API link we are using is here: https://demo.hosted.panopto.com/Panopto/Api/Docs/index.html#/Sessions/Sessions_Copy
Thank you
Answers
Hi Tyron,
The "user based server application" API type should work in your case, but your user needs to be admin for the copy operation probably. I've just tested this with Postman and it worked.
Scope: api openid
I hope this helps.
Thanks,
Adis
Hi Adis,
My testing continues to return a 403 Forbidden. Please see the attached for the details I put into Postman and let me know what the differences are to your working example. I am using a 'User Based Server Application' api client type.
Hi Tyron,
Does your path has 'Panopto' in it?
https:{baseurl}/Panopto/api/v1/…
Do you get the token with no issues?
Thanks,
Adis