Forms

Save answers to a submission

PATCH/submissions/{id}

Saves the answers you send (field id to value) and keeps the rest, with no validators, so a draft can be filled in steps. A completed submission can still be edited, except a masked field, which is 409 conflict keyed answers.<field id>. An id that is not a field of the form is 422 exists. Emits submission.updated with changed_fields when answers change; sends no email. Sending the old answers undoes it.

Path parameters

  • idstring (uuid)Required#

    The submission's id, a uuid. An unknown id, or a submission you cannot see, returns 404.

Query parameters

  • dry_runboolean#

    Validate and run the call without committing it, returning what the real call would return with meta.dry_run set.

Request body

application/json, required · FormSubmissionUpdate

  • answersobjectRequired#

    Answers keyed by form field id. Only the keys you send change. A masked field cannot change once the submission is completed.

{
  "answers": {
    "a1b2c3d4-e5f6-4071-8293-a4b5c6d7e8f9": "Ada Lovelace"
  }
}

Responses

200

The updated submission.

FormSubmission
{
  "data": {
    "id": "7d8e9f01-2a3b-4c5d-9e6f-708192a3b4c5",
    "form_id": "c3d4e5f6-0718-4293-a4b5-c6d7e8f90112",
    "user_id": "6f1c2e8a-1b2c-4d5e-8f90-1a2b3c4d5e6f",
    "status": "completed",
    "started_at": "2026-06-15T10:30:00Z",
    "completed_at": "2026-06-15T10:35:00Z",
    "answers": {
      "a1b2c3d4-e5f6-4071-8293-a4b5c6d7e8f9": "Ada Lovelace",
      "b2c3d4e5-f607-4182-93a4-b5c6d7e8f901": 250000
    },
    "created_at": "2026-06-15T10:30:00Z",
    "updated_at": "2026-06-15T10:35:00Z"
  }
}
401

Authentication failed. error.code is one of invalid_token, expired, revoked.

Error
403

Authorization failed. error.code is one of org_disabled, ip_blocked, missing_scope, scope_disabled, user_disabled.

Error
404

Resource not found (error.code = not_found).

Error
409

The request conflicts with existing state (error.code = conflict), e.g. a compliance flow with the requested name already exists.

Error
422

The request can't be processed (HTTP 422): validation_failed with one ErrorDetail per problem, or a code documented on the operation.

Error
429

Rate limit exceeded (error.code = rate_limited).

Error

Examples

curl -X PATCH https://your-org-domain/kong/core/api/v2/submissions/{id}\
  -H "Authorization: Bearer $HELM_API_KEY"\
  -H "Content-Type: application/json"\
  -d '{
  "answers": {
    "a1b2c3d4-e5f6-4071-8293-a4b5c6d7e8f9": "Ada Lovelace"
  }
}'