Dear Toradex Team,
we want to develop our own update front-end which allows us to trigger an update for a specific device with the Torizon OTA API.
To do this we first want to get a list of all the available packages through the /packages
endpoint.
At this point we have 198 packages uploaded and when calling the endpoint I can only get the first 50 packages.
It looks like the limit
and offset
parameter in the query do not have any effect. When I set them the default values are returned in the response.
For example when using this command
curl -X 'GET' \
'https://app.torizon.io/api/v2beta/packages?offset=25&limit=75' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <token>'
I get this response:
{
"values": [
...
],
"total": 198,
"offset": 0,
"limit": 50
}
Is this a bug or do I misunderstand the parameters?
Thanks and best regards,
Thorbjörn