Reports
Survey task report#
Returns information about all the surveys that match specified filters. Exactly one of
templateId or taskId must be provided (not both, not neither) โ otherwise the request fails with 400 Bad Request.Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| makeXls | Boolean | If true, the request returns an Excel file instead of a JSON | true |
| templateId | String | Survey template ID | true |
| taskId | Integer | ID of the Task object the surveys are linked to | true |
| shopSaps | Set of strings | SAP codes of the stores to filter by | true |
| regionIds | List of integers | IDs of Region objects | true |
| divisionIds | List of integers | IDs of Division objects | true |
| dateFrom | LocalDate (yyyy-MM-dd) | Creation date from | true |
| dateTo | LocalDate (yyyy-MM-dd) | Creation date to | true |
| status | Set of string enum (OPEN, IN_PROGRESS, CLOSED) | Statuses of the Response the survey is linked to | true |
| overdue | Boolean | Returns true if the deadline of the task is missed | true |
| approvalStatus | Set of string enum (APPROVED, NOT_APPROVED, APPROVABLE, NOT_APPROVABLE) | Approval statuses of the response | true |
Response
Returns a Survey task report object
Examples
200 OK