Update submission
Change answers on a submission and return the old values.
PATCH https://cotlet.dev/api/v1/formstack/submissions/{submission_id}
Edits the listed fields of a submission, the same as edit in the single view. It sends only the fields you pass. The response returns the old and new value of each field, because Formstack cannot revert an edit and the old value is the only way back. It does not resend notification emails or run an integration again. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| submission_id string required | string | Submission ID from list_submissions. |
| answers object required | object | Field ID from get_form mapped to the new value. |
Request
curl -X PATCH https://cotlet.dev/api/v1/formstack/submissions/1128305944 \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"answers":{"48211330":"jordan.ellis@gmail.com"}}' result = client.call("formstack", "update_submission", {"submission_id":"1128305944","answers":{"48211330":"jordan.ellis@gmail.com"}}) const result = await cotlet.call('formstack', 'update_submission', {"submission_id":"1128305944","answers":{"48211330":"jordan.ellis@gmail.com"}}); cotlet call formstack update_submission --data '{"submission_id":"1128305944","answers":{"48211330":"jordan.ellis@gmail.com"}}' Example response
{
"submission_id": "1128305944",
"updated": [
{
"field_id": "48211330",
"label": "Email",
"old": "jordan.ellis@gmial.com",
"new": "jordan.ellis@gmail.com"
}
]
}