cancel
Showing results for 
Search instead for 
Did you mean: 
jkesler
Surveyor II

Use API to export only pages

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

0 Kudos
0 Replies