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

Use API to export only pages


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>" ""

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.



0 Kudos
0 Replies