Fetch Analysis Kmeans (scale)
Analysis / Automated Persona
Fetch Analysis Kmeans (scale)
Description
Get analysis data for questions using responseIds for responses segmentation.
Payload
{
"fromDate": string,
"toDate": string,
"filter": array,
"responsesIds": array
}
where:
fromDate: start date in ISO format. Required.toDate: end date in ISO format. Required.filter: array of questions to filter responses by. Optional.responsesIds: array question ids for analysis segmentation. Required.
Response
200 OK
{
"dateFilters": array,
"projectId": string,
"fromDate": string,
"toDate": string,
"responses": {
"q000000000000000000000000": object,
"q000000000000000000000001": object
}
}
where:
projectId: unique identifier of the project.fromDate: start date received as param to the query in ISO format.toDate: end date received as param to the query in ISO format.dateFilters: Array of date filters used for querying the responsesresponses: object mapping unique question identifiers to kmeans analysis data for every question.
400 Bad Request
Missing or invalid
projectId/fromDate/toDatefields.
401 Unauthorized
Invalid authorization.
404 Not Found
Resource not found.
500 Internal Server Error
Error occurred in the service.
POST
Fetch Analysis Kmeans (scale)
Description
Get analysis data for questions using responseIds for responses segmentation.Payload
fromDate: start date in ISO format. Required.toDate: end date in ISO format. Required.filter: array of questions to filter responses by. Optional.responsesIds: array question ids for analysis segmentation. Required.
Response
200 OK
projectId: unique identifier of the project.fromDate: start date received as param to the query in ISO format.toDate: end date received as param to the query in ISO format.dateFilters: Array of date filters used for querying the responsesresponses: object mapping unique question identifiers to kmeans analysis data for every question.
400 Bad Request
Missing or invalidprojectId/fromDate/toDatefields.
401 Unauthorized
Invalid authorization.
404 Not Found
Resource not found.
500 Internal Server Error
Error occurred in the service.