Where is the api for importing and exporting courses?

In the front page I know how to import and export courses. But now I need to test the interface for the import and export function, and I can’t find the relevant api.
My tutor version is 15.3.2
Thanks in advance for any help. :slightly_smiling_face:

There are import and export management commands for use from the command line, but no simple REST API as far as I’m aware. The reason for this is that the import and export processes often take long enough (especially for large courses) to exceed request duration limits in browsers, web servers, and other points in the stack.

In the UI, the operation is triggered via a request that kicks off a background task, and then the UI is periodically updated to indicate when the task is complete. If you’re interested in seeing how that works, here are the relevant Django view functions.

1 Like

Thanks for your reply! I will try other ways to solve this problem.