Hi,
1- if you would like to check existing export you can use the link https://eu.kobotoolbox. org/api/v2/assets/{form uuid}/exports/ . you need to send GET request to this link and it i will return the existing exports with full details.
2- Same link as above, just instead of GET request, you need to sent POST request with the options below, you can find the details of the fields in the link, just paste it to a browser and check the documentation. Including the type, all options are mandory, the rest is optional
{
"fields_from_all_versions": "true",
"group_sep": "/",
"hierarchy_in_labels": "true",
"lang": "English (en)",
"multiple_select": "both",
"type": "geojson",
"fields": ["field_1", "field_2"],
"flatten": "true"
"xls_types_as_text": "false",
"include_media_url": "false",
"submission_ids": [1, 2, 3, 4],
"query": {
"$and": [
{"_submission_time": {"$gte": "2021-08-31"}},
{"_submission_time": {"$lte": "2021-10-13"}}
]
}
}
}
3- https://eu.kobotoolbox. org/api/v2/assets/{form uuid}/exports/{export uid} . You need to send DELETE request to this link, just you need to mention the uid of the export you would like to delete.
4- If you want to extract data form the export, https://eu.kobotoolbox. org/api/v2/assets/{form uuid}/exports/{export uid}.json from this link, you can get the link from result variable.
5- If you don’t want to deal with all this version, exports etc. You can just use the method mentioned in this video. You can use the same link in R and each time you run your code, you will get the most updated data. https://youtu.be/53Se9rWc9bc
For more documentation, please visit the https://eu.kobotoolbox. org/api/v2/assets/{form uuid}/exports/ and https://eu.kobotoolbox. org/api/v2/assets/{form uuid}/exports/{export uid}