Question
Add new question to template#
Add new question to template.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| name | String | Question name | false |
| templateId | String | Identifier of template | false |
| type | Object | Question type, see available types here | false |
| calculated | Boolean | An indication that the question can be calculated | false |
| required | Boolean | Sign of the obligatory answer to the question | false |
| needComment | Boolean | Sign the user can leave a comment | false |
| commentRequired | List of integers | Sign the user is obliged to leave a comment | true |
| enableCustomAnswer | Boolean | Sign the user can add his answer (text) | false |
| conditions | List of objects | Setting the visibility of the question depending on the answer to another question | true |
| hint | Object | Question hint | true |
Response
Returns Question object
Examples
200 OK
Update question#
Update question.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| name | String | Question name | false |
| templateId | String | Identifier of template | false |
| type | Object | Question type, see available types here | false |
| calculated | Boolean | An indication that the question can be calculated | false |
| required | Boolean | Sign of the obligatory answer to the question | false |
| needComment | Boolean | Sign the user can leave a comment | false |
| commentRequired | List of integers | Sign the user is obliged to leave a comment | true |
| enableCustomAnswer | Boolean | Sign the user can add his answer (text) | false |
| conditions | List of objects | Setting the visibility of the question depending on the answer to another question | true |
| hint | Object | Question hint | true |
Response
Returns Question object
Examples
200 OK
Add hint to question#
Add text and(or) file hint to exist question
Request parameters:
| Request Parameter | Type | Description | Required |
|---|---|---|---|
| hint | String | Text hint | false |
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| file | MultipartFile | File hint | true |
Response
Returns Hint object
Examples
200 OK
Update hint#
Update hint
Request parameters:
| Request Parameter | Type | Description | Required |
|---|---|---|---|
| hint | String | Text hint | false |
| uidsForDelete | List of strings | File uids for delete | false |
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| file | MultipartFile | File hint | true |
Response
Returns Hint object
Examples
200 OK