Set question properties
limesurvey_set_question_propertiesUpdate question properties. Writable fields: title, preg, other, mandatory, encrypted, question_order, scale_id, same_default, relevance, question_theme_name, modulename, same_script, question, help, script.
Instructions
Update question properties. Writable fields: title, preg, other, mandatory, encrypted, question_order, scale_id, same_default, relevance, question_theme_name, modulename, same_script, question, help, script. NOT writable through RemoteControl (the call is rejected before any request is sent): attributes, question_attributes, questionattributes, answers, answeroptions, answer_options, subquestions, defaultvalues, default_values, conditions, qid, gid, sid, parent_qid, type, question_l10ns. Question attributes, answer options and subquestions can only be changed by re-importing the question (limesurvey_import_question, or limesurvey_import_group / limesurvey_import_survey, all with import_data_path) or in the LimeSurvey admin UI; limesurvey_replace_question swaps a question of an inactive survey for the question in a .lsq file (inactive surveys only). Localized texts (question, help, script) are written with a language: {"language": "de", "question": "..."} or {"questionl10ns": {"de": {"question": "..."}}}. question, help and script are localized: pass them with data.language (or the language parameter); the server moves them into questionl10ns[language], so the other text fields are never blanked (LimeSurvey's legacy form would reset a field you did not send to an empty string). question_order is refused for questions that have legacy condition dependencies, and the group is renumbered after each change. Keys LimeSurvey does not report back are returned in warnings. Verified against the LimeSurvey 6.17.11 source; older releases may differ.
Calls LimeSurvey RemoteControl method set_question_properties. Authentication uses the configured service account; do not provide a session key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Question property names mapped to new values. | |
| language | No | LimeSurvey language code; null uses the survey default. | |
| question_id | Yes | Numeric question ID. | |
| response_format | No | Output format. JSON preserves the complete structured result; Markdown is optimized for reading. | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| result | Yes | ||
| warnings | No | ||
| truncated | No | ||
| truncation_message | No |