Clone Survey
clone_surveyClones a survey into the account: a complete copy (pages, questions, logic, quotas, translations) with fresh identifiers and a fresh, NOT yet started publication. The source is addressed by its publication code (sourceCode) or survey ID (sourceSurveyID from list_surveys) and must belong to the account or be a public example survey. Returns the new survey's code, name and state: 'created', or 'already-created' when the given cloneID was used by an earlier call — pass a client-generated cloneID to make retries safe: if this call times out, retry with the SAME cloneID and you will get the existing clone instead of a duplicate. On a mid-way failure the server removes the half-created survey and reports that nothing was created. Verified by readback: the new survey is read back through get_survey and the reply reports what actually exists under the new code — its name, state and question count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the new survey. Required. | |
| cloneID | No | Optional client-generated GUID used as the idempotency key — reuse the same value when retrying after a timeout. | |
| sourceCode | No | Publication code of the source survey (e.g. 1a2b3c4d). Provide either this or sourceSurveyID. | |
| sourceSurveyID | No | Survey ID of the source, as returned by list_surveys. Provide either this or sourceCode. |
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. |