Skip to main content
POST
Fetch responses with filter applied

Description

Generates an optimal max-diff experiment according to the input parameters.

Body

where:
  • projectId: The id of the project. Required.
  • limit: The amount of responses data to fetch (for paging). Required.
  • skip: The amount of responses data to skip (for paging). Required.
  • fromDate: The initial date of the responses data desired. Required.
  • toDate: The final date of the responses data desired. Required.
  • questionId: Array containing question ids that will be displayed in the UI table. Optional.
  • textFilter: Text that will be used as a search term to filter out the results. Optional.
  • filter: Array of applied filters. Optional.
    • type: The type of the filter. Accepted values are QUESTION, CONCEPT_DISPLAYED, CAMPAIGN and CHANNEL. Required.
    • operator: The operator to use to evaluate the condition of the filter. Accepted values are EQUAL, NOT_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, BETWEEN_EXCLUSIVE, BETWEEN_INCLUSIVE. Required.
    • values: The values used for the condition evaluation. For BETWEEN_EXCLUSIVE, BETWEEN_INCLUSIVE, a 2 values array is expected, else it should be an array with just one element. Required.
    • subtype: The subtype of the condition. Accepted values are CATEGORICAL, CATEGORICAL_ROW and NUMERICAL. Required.
    • questionIds: It is an array of question ids to be evaluated in the condition. Required when type=QUESTION.

Response

200 OK

where:
  • responses: Array of responses data.
  • filteredCount: Number of responses that matched the filter.
  • totalCount: Number of responses in total for the project.

400 Bad Request

ProjectId, limit, skip, fromDate and/or toDate are missing.

401 Unauthorized

The user doesn’t have permissions.

500 Internal Server Error

Error occurred while processing the request.

Authorizations

Authorization
string
header
required

Access token obtained from the m2m-token endpoint.

Headers

Authorization
string
required

Authorization token

Body

application/json

The body is of type object.

Response

Fetch responses with filter applied

The response is of type object.