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}
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
| Name | Type | Description |
|---|---|---|
| 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 -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"}}' result = client.call("123formbuilder", "update_submission", {"form_id":5128403,"submission_id":91827364,"values":{"Phone":"555 0143"}}) const result = await cotlet.call('123formbuilder', 'update_submission', {"form_id":5128403,"submission_id":91827364,"values":{"Phone":"555 0143"}}); cotlet call 123formbuilder update_submission --data '{"form_id":5128403,"submission_id":91827364,"values":{"Phone":"555 0143"}}' Example response
{
"submission_id": 91827364,
"form_id": 5128403,
"changed": [
{
"field": "Phone",
"old": "555 0142",
"new": "555 0143"
}
],
"notifications_resent": false
}