I have a question related to REST APIs in lms and cms. I have read that REST APIs for external use are available only in lms. why are they not available in cms. If I have to communicate with cms from my external app, how would I do that?
I recently created an external app which would create a course from the external app using API f"{studio_base_url.rstrip(‘/’)}/api/v1/course_runs/" and it worked perfectly , however I also wanted to upload contents of the course(e.g section, sub-section, unit) through the rest api and I used f"{STUDIO_BASE.rstrip(‘/’)}/import/{course_id}/" and it did not work because it redirects to login page as it has @login_required decorator on top of API.
(Note I haven’t used this before so hopefully my information is not wrong, or at least someone else can correct me otherwise )
As far as I understand, the import API endpoint requires a full archive (.tar.gz or .zip) of a course to import, rather than updating individual sections of an already existing course (unless I’m misunderstanding your query)
You can find this endpoint here:
And the tests file for this endpoint might give you some pointers in usage:
As for the authentication, this document here might be useful for you: