I want to know how can i delete the submissions via API with ajax. Because manual deletions of 100 or 200 Records is very time consuming from the Portal.
Hi,
Could you check the following article
Yes. You use the REST “DELETE” method against desired submission endpoint
AFAIK there is no exposed REST API to delete a one or more submissions based on a specific criteria, eg date.
Instead, what you have to do is identify the unique REST endpoint corresponding to the specific submission instance under its associated form instance. Typically, the process would be to enumerate your forms (if you didnt already know the form id), eg
HOST=https://kf.kobotoolbox.org
curl -v --header 'Accept: a…
Stephane
1 Like