Generate link to edit form

Hello,

I’ve tried to search for an answer to this but can’t find one in the forums.

In a data-checking script that I am creating, I would like to generate a link for someone to be able to edit a particular entry in a Kobo form - for example if an issue is found, I would like to be able to send the data-entry staff member a link to the response with the error so that they can amend it.

For context, data is pulled from Kobo via the API, and we will run the script. This link should be generated away from an internet browser, and lets assume that the person opening the link is signed already and has the permissions to edit forms.

When editing a submission online, by clicking the pencil/edit icon, a page opens up that seems to be in the following format:
https://ee.kobotoolbox.org/edit/<random string>?instance_id=<_uuid>&return_url=false

Each time I click to edit responses, the <random string> seems to change - can’t see any pattern there.

After opening one submission for editing, I’ve tried replacing the <_uuid> in the URL to that of another response. This doesn’t work and the following error comes up:

Guessing it’s something to do with the <random string> being also important.

How can I create this link so that it works? How do you know what the <random string> should be?

Thanks,

Welcome back to the community, @chrisbrowne! Maybe this post discussed previously should help you solve your issue: