Text responses for project
Analysis / Question Dashboard
Text responses for project
Description
Retrieve responses for all text questions in a project.
Payload
{
"fromDate": string,
"toDate": string,
"filter": array,
"questionProjection": [string]
}
where:
fromDate: start date of responses to query. (Required).toDate: end date of responses to query. (Required).filter: array of questions to filter responses by. (Optional).questionProjection: array of unique identifiers of text questions. Each question ID is prepended with a “q”. (Required).
Responses
200 OK
{
"projectId": "string",
"fromDate": "date (string)",
"toDate": "date (string)",
"filter": array,
"responses": {
"q000000000000000000000000": [
"response1 (string)",
"response2 (string)"
],
"q000000000000000000000001": [
"response1 (string)",
"response2 (string)"
]
}
}
where:
projectId: unique identifier of the project.fromDate: start date of responses to query.toDate: end date of responses to query.filter: array of questions to filter responses by.responses: object mapping unique question identifiers to arrays of text responses.
400 Bad Request
Missing or invalid required fields.
401 Unauthorized
Invalid authorization.
404 Not Found
Resource not found.
500 Internal Server Error
Error occurred in text-service microservice.
POST
Text responses for project
Description
Retrieve responses for all text questions in a project.Payload
fromDate: start date of responses to query. (Required).toDate: end date of responses to query. (Required).filter: array of questions to filter responses by. (Optional).questionProjection: array of unique identifiers of text questions. Each question ID is prepended with a “q”. (Required).
Responses
200 OK
projectId: unique identifier of the project.fromDate: start date of responses to query.toDate: end date of responses to query.filter: array of questions to filter responses by.responses: object mapping unique question identifiers to arrays of text responses.
400 Bad Request
Missing or invalid required fields.
401 Unauthorized
Invalid authorization.
404 Not Found
Resource not found.
500 Internal Server Error
Error occurred in text-service microservice.