Does the Content endpoint in the REST API have a way to upload files and associate them with a lesson plan?
Further, is there a way to do CRUD on lesson plan elements like Instructor, Objectives, etc.?
Uploads are not currently supported via REST content endpoints.
Endpoints for managing binary Uploads and Downloads for Attempts and Content are in analysis and development. I do not have a specific target release date at this time and will return to this discussion when I have those details.
Please elaborate on your lesson plan question with a description of what you wish to accomplish.
Senior Product Manager, Developer Platform
DevCon - BbWorld 2017
Thanks for the response Mark.
I want to be able to create a lesson plan (resource/x-bb-lesson-plan), upload arbitrary files and associate them with the lesson plan, and edit fields like "instructor", "objectives" etc.
As of now, I can create a document object (resource/x-bb-document) through the content endpoint, then edit the type directly in the postgres table course_contents to change the type to x-bb-lesson-plan. Obviously, this is not ideal. Beyond that, I am unable to edit the meta fields (I assume they're stored in another table or in the binary data field) nor upload files and associate (for the reasons you stated in your previous response).
Understood re: uploading files; however, is there a way to edit the meta fields or create x-bb-lesson-plan documents in a less hacky manner?
I am also interested in uploads, but in a different context - to upload assignment files on behalf of students.
Retrieving data ...