Publish Survey
publish_surveyPublishes a survey — starts collecting responses — and returns the public share link respondents open. Idempotent: publishing an already running survey is not an error; the current state comes back with wasAlreadyStarted=true. The started state is verified server-side by re-reading the publication before success is reported. The account's limit on concurrently running surveys is enforced: when it is reached the call fails with a message naming the limit and the current count — relay it; the user can stop another survey first. Publishing also fires the survey's SurveyPublished webhooks, if any are configured. Uses the same start flow as the application UI — never creates duplicate publications. Once published, responses start collecting on the share link and the survey counts against the account's concurrent-survey limit. Surveys can also be published from the app.
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 and clone_survey. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shareURL | No | ||
| isStarted | No | ||
| surveyCode | No | ||
| wasAlreadyStarted | No |