Hello there i have a problem when i call api for getting data it’s taking to long time to response.
note every submission have attachment in this form. is there any option to call api without api Please me know this is my api
Hi @mizanvai, sorry for the late response. You can try doing something like
# Using /api/v2
curl -X GET 'https://[kpi]/api/v2/assets/{asset_uid}/data/?fields=["field_1", "field_2"]&format=json'
# Using /api/v1
curl -X GET 'https://[kc]/api/v1/data/{id}/?fields=["field_1", "field_2"]&format=json'
There’s no parameter to exclude a field, so you will just have to list all the fields you want, excluding the ones you don’t.
I hope all is well.
Is it possible to just get the “attachments” list ? When I tried to use fields=[“_attachments”], I got an http 500 error code.
Thanks
Hmm that’s interesting. It works on the Global server (kf.kobotoolbox.org) but I see that it still fails on the UNHCR server. I’ve informed the dev team about it