Update submission

Change answers in a submission, like Edit and Update Submission in Results.

PATCH https://cotlet.dev/api/v1/123formbuilder/forms/{form_id}/submissions/{submission_id}

write Confirm

Edits the data a respondent provided, field by field, and saves it. Fields you leave out stay as they are; a label that is not on the form fails. The default report updates by itself, custom reports need an Update click in the app. Respondents are not told by default. If the form resends notifications on edit, the app sends them when the entry is saved, and notifications_resent is true. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: update_submission
NameTypeDescription
form_id integer required integer Form id from list_forms.
submission_id integer required integer Submission id from list_submissions.
values object required object Field label to new value, for the fields you change.

Request

cURL
curl -X PATCH https://cotlet.dev/api/v1/123formbuilder/forms/5128403/submissions/91827364 \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"values":{"Phone":"555 0143"}}'
Python
result = client.call("123formbuilder", "update_submission", {"form_id":5128403,"submission_id":91827364,"values":{"Phone":"555 0143"}})
Node.js
const result = await cotlet.call('123formbuilder', 'update_submission', {"form_id":5128403,"submission_id":91827364,"values":{"Phone":"555 0143"}});
CLI
cotlet call 123formbuilder update_submission --data '{"form_id":5128403,"submission_id":91827364,"values":{"Phone":"555 0143"}}'

Example response

JSON

{
  "submission_id": 91827364,
  "form_id": 5128403,
  "changed": [
    {
      "field": "Phone",
      "old": "555 0142",
      "new": "555 0143"
    }
  ],
  "notifications_resent": false
}

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.