Import question
limesurvey_import_questionImport a question into a LimeSurvey survey group, with support for inline base64 data or a local file path for larger files.
Instructions
Import a question into a survey group. Use import_data_path for files at or above roughly 50 KB instead of inline import_data.
Calls LimeSurvey RemoteControl method import_question. Authentication uses the configured service account; do not provide a session key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_id | Yes | Numeric question-group ID. | |
| mandatory | No | Whether the imported question is mandatory. | |
| survey_id | Yes | Numeric LimeSurvey survey ID. | |
| import_data | No | Base64-encoded question file contents; omit when using import_data_path. | |
| response_format | No | Output format. JSON preserves the complete structured result; Markdown is optimized for reading. | json |
| import_data_path | No | Local file path to a question file. The server reads and base64-encodes it, so use this instead of inline import_data for files at or above roughly 50 KB. The file must live inside LIMESURVEY_IMPORT_DIR (or LIMESURVEY_EXPORT_DIR as a fallback). Exactly one of import_data or import_data_path must be set. | |
| import_data_type | Yes | Import type supported by the LimeSurvey instance, normally lsq. | |
| new_question_help | No | Optional replacement help text. | |
| new_question_text | No | Optional replacement question text. | |
| new_question_title | No | Optional replacement question code/title. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| result | Yes | ||
| truncated | No | ||
| truncation_message | No |