Import question group
limesurvey_import_groupImports a question group into a LimeSurvey survey using the survey ID and import data type. Optionally rename or describe the group.
Instructions
Import a question group into a survey. Use import_data_path for files at or above roughly 50 KB instead of inline import_data.
Calls LimeSurvey RemoteControl method import_group. Authentication uses the configured service account; do not provide a session key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| survey_id | Yes | Numeric LimeSurvey survey ID. | |
| import_data | No | Base64-encoded group file contents; omit when using import_data_path. | |
| new_group_name | No | Optional replacement group name. | |
| 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 group 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 lsg. | |
| new_group_description | No | Optional replacement group description. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| result | Yes | ||
| truncated | No | ||
| truncation_message | No |