To retrieve a collection of uploads, send a GET request to the /uploads
endpoint. The collection is paginated, so make sure to iterate over all the pages if you need every record in the collection!
The following table contains the list of all the possible arguments, along with their type, description and examples values.
Pro tip: in case of any doubts you can always inspect the network calls that the CMS interface is doing, as it's using the Content Management API as well!
Attributes to filter uploads
IDs to fetch, comma separated
"12,31"
Textual query to match. If locale
is defined, search within that locale. Otherwise environment's main locale will be used.
"foobar"
Same as GraphQL API uploads filters. Use snake_case for fields names. If locale
is defined, search within that locale. Otherwise environment's main locale will be used.
{ type: { eq: "image" }, size: { gt: 5000000 } }
When filter[query]
or field[fields]
is defined, filter by this locale. Default: environment's main locale
"it"
Fields used to order results. Format: <field_name>_<DIRECTION(ASC|DESC)>
. You can pass multiple comma separated rules.
"_created_at_DESC,size_ASC"
Parameters to control offset-based pagination
The (zero-based) offset of the first entity returned in the collection (defaults to 0)
200
The maximum number of entities to return (defaults to 30, maximum is 500)
Returns an array of resource objects of type upload.