API Use to upload Common Cartridge, convert, create offering
Is it possible to use the valence API to upload a Common Cartridge ZIP, convert it, then create a course offering from that?
Answers
-
Hi James,
I hope you’re having a great week! Thank you for reaching out with your API question.
While the Valence API doesn't provide a single API call to upload a Common Cartridge ZIP, convert it, and create a course offering all at once, you can accomplish this in two steps:
- POST /d2l/api/lp/(version)/courses/ > This API will allow you to create a new course offering.
- POST /d2l/api/le/(version)/import/(orgUnitId)/imports > This API will do the import and handle the conversion of the Common Cartridge ZIP into your course structure.
Unfortunately, there isn't an API available that does both steps in one call. You will need to create the course first and then import the package into the course separately. For more details on these APIs and their parameters, please refer to the full list of available API calls in the Valence API documentation.
If you have any further questions about setting up these API calls or need assistance with their parameters, I’d recommend checking out our developer community platform for additional resources and support.
Let me know if you need any further clarification or assistance!
Isidora