First of all, we’ve removed the
to parameter from request. Now it is used for internal purpose only and is not expected to be set manually. Don’t send it as it will produce incorrect results. Also, we slightly changed the purpose for the
from parameter – just think about it as a starting point for filtering results.
Secondly, we’ve added an ordering ability so now you can specify the way the result must be sorted. Just use the
ordering parameter in requests, like this:
curl -H "Authorization: Uploadcare.Simple demopublickey:demoprivatekey" \ "https://api.uploadcare.com/files/?ordering=-size&limit=10"
Currently, you can sort files by their
size in both directions: ascending and descending. For groups only
datetime_uploaded (ascending and descending) is allowed.
You can read more about how to use this in the documentation for each resource.