bulk edit of due *times* (not dates) #542
Unanswered
ebonakdarian
asked this question in
Q&A
Replies: 1 comment 6 replies
-
For default due times, there's a parameter Canvas docs for "Update course settings" endpoint CanvasAPI docs for Example: course.update_settings(default_due_time="23:59:59") If you're looking to modify assignments directly, assignments = course.get_assignments()
for assignment in assignments:
assignment.edit(assignment={'due_at': '2022-08-27T23:59:59Z'}) Hopefully that gives you some ideas, let us know how it goes! |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to set default due times for a class with this API? The Canvas interface only let's you set on the hour, I need on the 30 minute mark.
I looked through the API docs, but didn't see a way to set the due time for each assignment per class, perhaps I missed it?
I.e., I don’t see a bulk way to edit all my 9:30 AM due times form a previous semester to say 12:30 PM for this semester once they have been imported (dates are adjusted ok for the most part). Each assignment has two due dates/time (regular and late), say 20 assignments per semester, 40 new dates/time to be set, 3 courses, that’s a 120 time this has to be done (and without errors). Tedious and waste of time, so if I could write a short Python script to make this change it would be great.
Beta Was this translation helpful? Give feedback.
All reactions