Josh
November 17, 2021, 7:34pm
5
Hi @andrea_ageon , this is possible with the API v2 data endpoint. If you have given a user row-level permissions to only see their own submissions for example, then if they visit (with their token):
https://<kf url>/api/v2/assets/<asset uid>/data.json
They will only see submissions by them. Additionally if they export data to XLS they will only export their submissions.
If you are wanting to do more granular filtering through the API, you can refer to the thread here:
Hi @Akratos , you can use the query parameter to do this kind of lookup through the API. The documentation is here (replace with your asset UID):
https://kobo.humanitarianresponse.info/api/v2/assets/<your asset uid>/data/#query-submitted-data
So your URL should like something like:
https://kobo.humanitarianresponse.info/api/v2/assets/<your asset uid>/data?format=json&query={"group_pe65x02/Nombre_de_la_persona_encuestada": "louis"}
Or in Python, something like:
import requests
import json
TO…
3 Likes