questionTypes_upsert
Upsert a question type: create new or update existing with customizable properties including AI generation, grading, and translations.
Instructions
Creates a new question type or updates an existing one. If the question type already exists, it will be updated; otherwise, a new one will be created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| $schema | No | ||
| id | No | Unique identifier for the question type (e.g. 'my-org.color-picker') | |
| name | No | Display name for the question type, can be a simple string or translation object | |
| description | No | Description of the question type, can be a simple string or translation object | |
| icon | No | Path to the icon for this question type | |
| shortcut | No | Keyboard shortcut for quick access to this question type | |
| generation | No | Options for AI question generation | |
| grading | No | Options for AI question grading | |
| scanning | No | Options for AI question scanning | |
| timeEstimateMinutes | No | Estimated time in minutes to complete this question type | |
| isAi | No | Whether this question type uses AI functionality | |
| backgroundColor | No | Background color for the question type | |
| enforcePosition | No | Position enforcement for this question type | |
| enforceTitle | No | Enforced title for this question type | |
| hideSettings | No | Whether to hide settings for this question type | |
| isPreviewRefreshable | No | Whether the preview can be refreshed for this question type | |
| hasSimpleScoring | No | Whether this question type has simple scoring | |
| titlePlaceholder | No | Placeholder text for the title field | |
| descriptionPlaceholder | No | Placeholder text for the description field | |
| untitledPlaceholder | No | Placeholder text for untitled questions | |
| components | No | Paths to the components used by this question type | |
| settings | No | Configuration settings for the question type | |
| public | No | Whether this question type is public and can be used by all users | |
| translations | No | Custom translations for this question type | |
| capabilities | No | Capabilities of the question type for various operations | |
| export | No | Export configuration for various formats | |
| metadata | No | Optional metadata for the question type, only used by external applications | |
| stylesheet | No | ||
| index | No | ||
| isDefault | No |