Use API to export only pages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to work with the Canvas API to automate backups of Pages in a course. Eventually I would like to backup all pages, but at the moment, I'll settle for just any single page. I am trying the following, which gives me just an empty shell.
curl -d "export_type=common_cartridge&select[pages]=<???>" -X POST -H "Authorization: Bearer <secret>" "https://server.instructure.com/api/v1/courses/329697/content_exports"
I believe I am not formatting the <???> correctly. The API documentation says "The value for each key is a list of object ids. An id can be an integer or a string." but I must not be formatting the "list" correctly. I have tried just a page id by itself, wrapped in [ ] and wrapped in { } to no avail.
I'll keep working on it, but please help if you can.
Thanks,
Jay
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.