Assignments API Call: List Assignments in descending order of creation/due date or most recent

Jump to solution
Community Member


I would like to get a list of assignments sorted by their creation_at or due_date in descending order(most recent assignments). On  , I can see an order_by which only accepted position, name, and due_at but doesn't specify an order_direction. Could someone please help me with this?

Thanks in advance! 

Labels (1)
1 Solution
Community Coach
Community Coach


No, you can't change the order. I had a look at the source code of the API endpoint and it's set as latest_due_date order.

You will need to go write a loop to go through the array, here is an example in Javascript (

Alternatively, you can do it visually through @James 's spreadsheet here



View solution in original post