Changelog April 1, 2016 by Egor Vakuliak

REST API version 0.5

We’re happy to present a new version of our REST API number 0.5.
It’s goal is to make dealing with resource lists like File list or Group list more effective.

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 datetime_uploaded and 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.

Leave a comment

*

*