create_question
Add a question to a Nextcloud form by specifying form ID and question type. Returns the new question's ID and order for managing form structure.
Instructions
Add a question to a form.
Args: form_id: Numeric form id. question_type: One of: "short" (single-line text), "long" (multi-line text), "multiple" (checkbox), "multiple_unique" (radio), "dropdown", "date", "time", "file", "grid", "color", "linearscale". "datetime" is rejected by Nextcloud — use separate "date" and "time" questions. text: Question text. Defaults to empty; update_question can set it later. subtype: For question_type="grid" only, the cell type: "radio", "checkbox", or "number". from_id: Optional id of an existing question to clone.
Returns: JSON of the new question including its assigned id and order. For choice types (dropdown/multiple/multiple_unique), use create_options to add the answer choices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| form_id | Yes | ||
| from_id | No | ||
| subtype | No | ||
| question_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |