Instance
Create instance#
Creates a new survey instance (a single "run" of a template). Returns just the new instance's id โ useGet instance by id to fetch the full object.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| templateId | String | Identifier of the template | false |
| type | Enum of string | Type of instance: STANDALONE, TASK, APPLICATION | false |
| executorId | Integer | Identifier of the executor | true |
| executorName | String | Executor name | true |
| shopId | Integer | Identifier of the store | true |
Response
Returns the identifier of the created instance, as a plain string
Examples
200 OK
Get instance by id#
Returns the full instance object, including its current grade/result and completion status.
Examples
200 OK
Finish instance#
Marks the instance as finished, calculating its final grade/result.
Examples
200 OK
Delete instance#
Deletes one or more instances. The single-id form (DELETE /survey/instances/{id}) and the batch form (
DELETE /survey/instances with a JSON array of ids in the body) both work.Examples
200 OK