Template
Create template#
Creates new template.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| name | String | Template name | false |
| quick | Boolean | Is a template for quick surveys | false |
| categoryId | String | Template category id | false |
| gradeConditions | List of object | Setting parameters of the result (only for surveys with grades) | true |
| showGrades | Boolean | Whether to show grades when taking a survey.Default false | true |
| withGrades | Boolean | Whether the template with scores is.Default false | true |
| deleted | Boolean | Template activity.Default false | true |
| hidden | Boolean | Template visibility for users. Default false | true |
Response
Returns Template object
Examples
200 OK
Update template#
Update template settings or deactivate template
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| id | String | Identifier | false |
| name | String | Template name | false |
| quick | Boolean | Is a template for quick surveys | false |
| categoryId | String | Template category id | false |
| gradeConditions | List of object | Setting parameters of the result (only for surveys with grades) | true |
| showGrades | Boolean | Whether to show grades when taking a survey | false |
| withGrades | Boolean | Whether the template with scores is | false |
| deleted | Boolean | Template activity | false |
| hidden | Boolean | Template visibility for users | false |
Response
Returns Template object
Examples
200 OK
List templates#
Get templates by filter
Request parameters:
| Request Parameter | Type | Description | Required |
|---|---|---|---|
| page | String | Identifier | false |
| size | String | Identifier | false |
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| onlyActive | String | Identifier | false |
| categoryId | String | Identifier | false |
| withHidden | String | Identifier | false |
| updateAfter | String | Identifier | false |
| withQuestionsOnly | String | Identifier | false |
| quick | String | Identifier | false |
| search | String | Identifier | false |
Response
Returns a list Template objects
Examples
200 OK
Get template by id#
Move to category#
Move template to another category
Request parameters:
| Request Parameter | Type | Description | Required |
|---|---|---|---|
| fromCategory | String | Identifier current template of category | false |
| toCategory | String | Identifier of destination category | false |
Response
Return Template object
Examples
200 OK