Create Survey Response
create_survey_responseRecords a response collected outside the survey link — e.g. a paper questionnaire, a phone or in-person interview, or an import from another system. Such responses are stored with source 'external' and can be told apart from responses submitted through the share link. Creates a new response (result case) in a survey. The survey's publication must be started. Answers go into Items: each item addresses a question by its variable name (Q1, Q2.3, Q — get them via get_survey) and carries the answer in Value. PersonalizedID is optional; if supplied and a response with it already exists, the call fails — use update_survey_response to modify. Technical data (host, user agent, device, dates) is set server-side and is not part of the input. Verified by readback: the response is re-read from the survey's stored data afterwards and the reply reports what is actually stored, not merely that the write was acknowledged. That read costs one heavy-class request, and it needs a PersonalizedID to address the response by.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Survey publication code — the 8-character code from the survey's public link (e.g. 1a2b3c4d). Returned by list_surveys. | |
| resultCase | Yes | The response to create: personalizedID (optional), isCompleted (optional) and items — the answers by question variable. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | What the call did, verified, refused or previewed — the complete human-readable outcome. | |
| preview | No | true when the call was a preview (confirm not passed): nothing was changed. |