raffy_m
September 29, 2022, 2:59am
1
In my application, the following API used to work:
https://kc.kobotoolbox.org/api/v1/data/[asset_identifier]?format=json&sort={\"_id\":1}&start=85613&limit=2000
Now, i get a server 500 error
May I know what is the equivalent syntax if i use v2 api?
Thanks
Raffy
raffy_m
September 29, 2022, 4:28am
2
By the way, I am using the non-humanitarian server.
Thanks,
Raffy
Kal_Lam
September 30, 2022, 2:49am
3
@raffy_m , maybe you could refer to this post discussed previously:
Hi @Ahmad1 , this is possible , but unfortunately there is currently no UI to easily create the filtered export. To do this, you can navigate to the following URL with your ASSET_UID and KF_URL depending on the server you are using:
https://<KF_URL>/api/v2/assets/<ASSET_UID>/exports/
for example:
HHI
https://kf.kobotoolbox.org/api/v2/assets/arhhVdJxyFxguzdyhuDZWb/exports/
OCHA
https://kobo.humanitarianresponse.info/api/v2/assets/arhhVdJxyFxguzdyhuDZWb/exports/
Then paste the following JSON …
The error is gone now. I think it had something to do with our internet connection. Thanks
1 Like
The error is gone now. I think it had something to do with our internet connection. Thanks
1 Like
@raffy_m , thank you for updating the issue!