SurveyEditor
📄️ Get input types
Returns all question input types (e.g. text, radio, checkbox, date). Used when creating or editing questions.
📄️ Get question sets
Returns all question sets with a question count per set. Question sets group related questions into a survey/questionnaire template.
📄️ Create question set
Creates a new empty question set. Body: `{ 'name', 'description', 'validationProcedureName' }`. `validationProcedureName` is optional and references a stored procedure used to validate completed questionnaires. Returns 201 Created.
📄️ Get question set by ID
Returns the question set with its ordered list of questions including input type, weight, required/not-applicable flags, and parameter counts. Returns 404 if not found.
📄️ Update question set
Updates name, description, or validationProcedureName of an existing question set. All fields optional. Returns 404 if not found.
📄️ Delete question set
Permanently deletes a question set and its question assignments. Returns 204 on success, 404 if not found.
📄️ Add question to set
Links an existing question to a question set. Body: `{ 'questionId', 'order', 'isRequired', 'isNotApplicable', 'questionNumber' }`. Returns 404 if the set or question does not exist.
📄️ Update question in set
Updates the order, required flag, not-applicable flag, or question number for a question within a set. `qqsId` is the QuestionQuestionSet relation ID. All fields optional. Returns 404 if not found.
📄️ Remove question from set
Removes a question from a question set (deletes the relation row only, not the question itself). Returns 204 on success, 404 if not found.
📄️ Get questions
Returns all questions with optional filters. Query params: `search` (partial match on name/nameEn), `inputTypeId` (GUID). Returns id, name, description, nameEn, refKey, inputTypeId, weight, isArchival, parentId.
📄️ Create question
Creates a new question. Body: `{ 'name', 'nameEn', 'description', 'refKey', 'weight', 'inputTypeId' }`. Returns 404 if inputTypeId does not exist. Returns 201 Created.
📄️ Update question
Updates fields of an existing question. All fields optional. Returns 404 if the question or the new inputTypeId does not exist.
📄️ Delete question
Permanently deletes a question. Returns 204 on success, 404 if not found.
📄️ Get question params
Returns all parameters (answer options / sub-fields) for a question, ordered by `order`. Used to define choices for radio/checkbox questions or structured input fields.
📄️ Create question param
Adds a new parameter (answer option) to a question. Body: `{ 'displayValue', 'value', 'order', 'refKey' }`. Returns 404 if the question does not exist. Returns 201 Created.
📄️ Update question param
Updates fields of an existing question parameter. All fields optional: `displayValue`, `value`, `order`, `refKey`. Returns 404 if the param does not belong to the question.
📄️ Delete question param
Permanently deletes a question parameter. Returns 204 on success, 404 if the param does not belong to the question.