Set Survey Page Flags
set_survey_page_flagsSets a page's flags and returns the current page list (number, title, question count, flags). page is the 1-based number of the page. markComplete=true marks the response COMPLETED once the respondent passes that page — for surveys where the required part ends mid-flow and the rest is optional (e.g. demographics); it counts in the completed statistics. isEnd=true turns the page into an end page (the survey finishes on it with its own content) — usually you want add_end_page instead. A flag that is omitted stays unchanged. Verified by readback. Requires the edit-survey right on this survey.
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. | |
| page | Yes | 1-based number of the page to flag. | |
| isEnd | No | Set the page's end-page flag — the survey finishes on this page with its own content. Omit to leave unchanged. | |
| markComplete | No | Set the page's early-completion flag — the response counts as completed once the respondent passes this page. Omit to leave unchanged. |
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. |