Update submission

Change answers on a submission and return the old values.

PATCH https://cotlet.dev/api/v1/formstack/submissions/{submission_id}

write Confirm

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

Parameters: update_submission
NameTypeDescription
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
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"}}'
Python
result = client.call("formstack", "update_submission", {"submission_id":"1128305944","answers":{"48211330":"jordan.ellis@gmail.com"}})
Node.js
const result = await cotlet.call('formstack', 'update_submission', {"submission_id":"1128305944","answers":{"48211330":"jordan.ellis@gmail.com"}});
CLI
cotlet call formstack update_submission --data '{"submission_id":"1128305944","answers":{"48211330":"jordan.ellis@gmail.com"}}'

Example response

JSON

{
  "submission_id": "1128305944",
  "updated": [
    {
      "field_id": "48211330",
      "label": "Email",
      "old": "jordan.ellis@gmial.com",
      "new": "jordan.ellis@gmail.com"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.