Some APIs allow you to upload a file to LearningStudio just as can be done via the User Interface. The TempFiles API is the intermediary step to attaching a file to a post, homework submission, document share, etc. Once uploaded here, this API provides a URL that you will provide to the other APIs. Behind the scenes, LearningStudio will move the file from TempFiles to the appropriate content domain.
Files are saved in TempFiles for up to four hours.