From da48d6b373b506edf0173a11e0284b4bf6de7441 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Mon, 23 Nov 2026 00:12:34 +0100 Subject: [PATCH] docs(api): say that a question type without sub types rejects one Creating a question checks a given subtype against the extra settings of its type, so a subtype sent for a type without sub types, such as a short answer, is rejected with 400 "Invalid subtype". The documentation only said that a grid question needs its cell type. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Andy Scherzinger --- docs/API_v3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API_v3.md b/docs/API_v3.md index c9b3095a6..158218663 100644 --- a/docs/API_v3.md +++ b/docs/API_v3.md @@ -372,7 +372,7 @@ Returns the questions and options of the given form (without submissions). | _subtype_ | String | yes | _Optional_ The cell type of a `grid` question, stored as `extraSettings.questionType`: `checkbox`, `number` or `radio`. Any other value is rejected. | | _text_ | String | yes | _Optional_ The text of the new question. | | _position_ | Integer | yes | _(optional)_ 1-based position to insert the new question. When omitted the question is appended at the end. | -- Restrictions: A `grid` question needs its cell type as _subtype_. +- Restrictions: A `grid` question needs its cell type as _subtype_. A _subtype_ for a question type without sub types is rejected with **400 Bad Request**. - Response: The new question object. ```