GET /external/api/v3/answer/getopenanswers
Get a list of open answers with optional key performance indicator.
Request Information
URI Parameters
| Name | Description | Type | Additional information | Nullable |
|---|---|---|---|---|
| OpenBaseQuestionIds |
Open answer base question ids. |
Collection of integer |
Required |
False |
| KeyPerformanceIndicatorBaseQuestionId |
Include specific key performance indicator (base question id). |
integer |
None |
True |
| CustomerDataFilters |
Filter result using customer data filters. |
Collection of CustomerDataFilter |
None |
False |
| DateFilter |
Filter on date. |
DateFilterWithType |
None |
False |
| Cursor |
Token to retrieve the next set of data. Token can be found in the NextCursor property of the result. Leave empty for the first cursor. |
string |
None |
False |
| Limit |
Total requested. Max and default are set at 100. |
integer |
None |
False |
Body Parameters
None.
Response Information
Resource Description
List of customers with open answers and score.
GetOpenAnswersResponse| Name | Description | Type | Additional information | Nullable |
|---|---|---|---|---|
| Data | Collection of OpenQuestionData |
None |
False | |
| Errors | Collection of string |
None |
False | |
| NextCursor |
Token to retrieve the next set of customers - Add token to the Cursor property of the request. |
string |
None |
False |
Response Formats
application/json, text/json
Sample:
{
"Data": [
{
"CustomerId": 1,
"BaseQuestionId": 1,
"Score": 1,
"Answers": [
{
"BaseQuestionId": 1,
"Answer": "sample string 2"
},
{
"BaseQuestionId": 1,
"Answer": "sample string 2"
}
]
},
{
"CustomerId": 1,
"BaseQuestionId": 1,
"Score": 1,
"Answers": [
{
"BaseQuestionId": 1,
"Answer": "sample string 2"
},
{
"BaseQuestionId": 1,
"Answer": "sample string 2"
}
]
}
],
"Errors": [
"sample string 1",
"sample string 2"
],
"NextCursor": "sample string 1"
}
application/xml, text/xml
Sample:
<GetOpenAnswersResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Expoints.API.Extern.V2.Responses">
<NextCursor xmlns="http://schemas.datacontract.org/2004/07/Expoints.API.Extern.Domain.Shared.Responses">sample string 1</NextCursor>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Expoints.API.Extern.V2.Models">
<d2p1:OpenQuestionData>
<d2p1:Answers>
<d2p1:OpenQuestionAnswer>
<d2p1:Answer>sample string 2</d2p1:Answer>
<d2p1:BaseQuestionId>1</d2p1:BaseQuestionId>
</d2p1:OpenQuestionAnswer>
<d2p1:OpenQuestionAnswer>
<d2p1:Answer>sample string 2</d2p1:Answer>
<d2p1:BaseQuestionId>1</d2p1:BaseQuestionId>
</d2p1:OpenQuestionAnswer>
</d2p1:Answers>
<d2p1:CustomerId>1</d2p1:CustomerId>
<d2p1:Score>1</d2p1:Score>
</d2p1:OpenQuestionData>
<d2p1:OpenQuestionData>
<d2p1:Answers>
<d2p1:OpenQuestionAnswer>
<d2p1:Answer>sample string 2</d2p1:Answer>
<d2p1:BaseQuestionId>1</d2p1:BaseQuestionId>
</d2p1:OpenQuestionAnswer>
<d2p1:OpenQuestionAnswer>
<d2p1:Answer>sample string 2</d2p1:Answer>
<d2p1:BaseQuestionId>1</d2p1:BaseQuestionId>
</d2p1:OpenQuestionAnswer>
</d2p1:Answers>
<d2p1:CustomerId>1</d2p1:CustomerId>
<d2p1:Score>1</d2p1:Score>
</d2p1:OpenQuestionData>
</Data>
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Errors>
</GetOpenAnswersResponse>
Response Status Codes
| Status Code | Name | Description |
|---|---|---|
| 200 | OK | The request has succeeded. |
| 400 | Bad Request | Fulfilling the request would cause an invalid state. Request needs modification. |
| 401 | Unauthorized | Missing or invalid authentication token. |
| 403 | Forbidden | Server refuses to authorize the request. |
| 408 | Request Timeout | The server timed out waiting for the request. |
| 429 | Too Many Requests | Too many requests in a given amount of time. |
| 500 | Internal Server Error | The server encountered an unexpected condition which prevented it from fulfilling the request. |
| 503 | Service Unavailable | The server is unable to proces the request at the moment, try again later. |