Anyone figured out how to set a page to do date through the API?

Jump to solution
kenneth_larsen
Community Champion

Last Fall Canvas added the ability to set a date on pages so that they appear in the student to do list:

308027_pastedImage_1.png

308030_pastedImage_5.png

Unfortunately, there is no information about this functionality available in the Pages API.

I can view that date using the List pages or Show page API

308029_pastedImage_3.png

I have tried the typical Update/create page api pattern for updating page information by passing wiki_page[todo_date] but that doesn't appear to do anything.

Anyone worked with this yet, or any of the awesome Canvas Engineers have any information on how to set this date through the API?

Thanks fo any insights!

Labels (1)
1 Solution
James
Community Champion

 @kenneth_larsen 

Try: student_todo_at instead of todo_at

Here's a screenshot of what Canvas sends when it does it (from the network tab on the developer tools)

308036_pastedImage_4.png

Canvas does use the API to update this, with a PUT method.

View solution in original post