POST api/Analytics
Add a new AnalyticQuery
Request Information
URI Parameters
None.
Body Parameters
The Name, OutputQuestionId, and FilterQuestions are used to build the query object
AnalyticQueryDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Template | string |
None. |
|
| OrganizationIds | Collection of globally unique identifier |
None. |
|
| StartTimestamp | date |
None. |
|
| EndTimestamp | date |
None. |
|
| KeyQuestions | Collection of globally unique identifier |
None. |
|
| KeyDate | globally unique identifier |
None. |
|
| QuestionFilters | Collection of ReportQuestionDetail |
None. |
|
| StateFilters | Collection of StateSimple |
None. |
|
| IncludeBlanks | boolean |
None. |
|
| Save | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "9c0ea5a1-a81b-4a66-a98f-dc5fd60a9a9e",
"Name": "sample string 2",
"Template": "sample string 3",
"OrganizationIds": [
"a89dc861-9eb0-4caa-9f4d-40033675fc65",
"cbe4ec24-fa6f-426c-b2da-766ae69bde32"
],
"StartTimestamp": "2025-12-12T16:35:34.3751482+00:00",
"EndTimestamp": "2025-12-12T16:35:34.3751482+00:00",
"KeyQuestions": [
"ac8c15de-4b4f-414e-8e23-41c51adff61f",
"e0ada6ab-5042-43b6-a6c1-077efd974fd5"
],
"KeyDate": "6678557f-1128-4fbe-afc4-22c357ec8757",
"QuestionFilters": [
{
"Id": "4cf54cce-afbb-4eff-99f0-9174907d2a06",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
},
{
"Id": "4cf54cce-afbb-4eff-99f0-9174907d2a06",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
}
],
"StateFilters": [
{
"Id": "c7a6ad97-7509-452a-9623-9b9bbde72abb",
"Name": "sample string 2"
},
{
"Id": "c7a6ad97-7509-452a-9623-9b9bbde72abb",
"Name": "sample string 2"
}
],
"IncludeBlanks": true,
"Save": true
}
application/xml, text/xml
Sample:
<AnalyticQueryDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XCapture.DTO">
<EndTimestamp>2025-12-12T16:35:34.3751482+00:00</EndTimestamp>
<Id>9c0ea5a1-a81b-4a66-a98f-dc5fd60a9a9e</Id>
<IncludeBlanks>true</IncludeBlanks>
<KeyDate>6678557f-1128-4fbe-afc4-22c357ec8757</KeyDate>
<KeyQuestions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>ac8c15de-4b4f-414e-8e23-41c51adff61f</d2p1:guid>
<d2p1:guid>e0ada6ab-5042-43b6-a6c1-077efd974fd5</d2p1:guid>
</KeyQuestions>
<Name>sample string 2</Name>
<OrganizationIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>a89dc861-9eb0-4caa-9f4d-40033675fc65</d2p1:guid>
<d2p1:guid>cbe4ec24-fa6f-426c-b2da-766ae69bde32</d2p1:guid>
</OrganizationIds>
<QuestionFilters>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>4cf54cce-afbb-4eff-99f0-9174907d2a06</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>4cf54cce-afbb-4eff-99f0-9174907d2a06</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
</QuestionFilters>
<Save>true</Save>
<StartTimestamp>2025-12-12T16:35:34.3751482+00:00</StartTimestamp>
<StateFilters>
<StateSimple>
<Id>c7a6ad97-7509-452a-9623-9b9bbde72abb</Id>
<Name>sample string 2</Name>
</StateSimple>
<StateSimple>
<Id>c7a6ad97-7509-452a-9623-9b9bbde72abb</Id>
<Name>sample string 2</Name>
</StateSimple>
</StateFilters>
<Template>sample string 3</Template>
</AnalyticQueryDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AnalyticQueryResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Query | AnalyticQueryDTO |
None. |
|
| KeyQuestionsMetaData | Collection of ReportQuestionDetail |
None. |
|
| Results | Collection of CaseAnalysisRecord |
None. |
Response Formats
application/json, text/json
Sample:
{
"Query": {
"Id": "74bd0872-156b-4989-8a62-5b66b3cbe0d8",
"Name": "sample string 2",
"Template": "sample string 3",
"OrganizationIds": [
"1d0fc7e8-1763-484d-a498-0db3dea75eea",
"493a0cc8-9cf7-40b5-8a46-9d724e9cbe9b"
],
"StartTimestamp": "2025-12-12T16:35:34.3751482+00:00",
"EndTimestamp": "2025-12-12T16:35:34.3751482+00:00",
"KeyQuestions": [
"6596b414-84f5-4a36-84cf-aaa2709963dd",
"20285e7a-0e1b-49dc-9208-3d25f7aa911b"
],
"KeyDate": "b79d1422-cb4f-4b4b-bfbb-54271d75487b",
"QuestionFilters": [
{
"Id": "b1d24421-72e8-4bad-b286-9721e45feb2d",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
},
{
"Id": "b1d24421-72e8-4bad-b286-9721e45feb2d",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
}
],
"StateFilters": [
{
"Id": "005e4fe7-ab87-4374-9fbd-a49aef2a8404",
"Name": "sample string 2"
},
{
"Id": "005e4fe7-ab87-4374-9fbd-a49aef2a8404",
"Name": "sample string 2"
}
],
"IncludeBlanks": true,
"Save": true
},
"KeyQuestionsMetaData": [
{
"Id": "b1d24421-72e8-4bad-b286-9721e45feb2d",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
},
{
"Id": "b1d24421-72e8-4bad-b286-9721e45feb2d",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
}
],
"Results": [
{
"Id": "64d630da-3272-4477-9da5-09ef52196cca",
"FriendlyId": "sample string 2",
"Name": "sample string 3",
"KeyDate": "2025-12-12T16:35:34.3751482+00:00",
"CreatedTimestamp": "2025-12-12T16:35:34.3751482+00:00",
"ModifiedTimestamp": "2025-12-12T16:35:34.3751482+00:00",
"Keys": {
"7ccf215a-a984-4244-9657-e2dd12578a57": "sample string 2",
"a2009271-76f7-4e8b-8c32-4be5649f25d3": "sample string 4"
}
},
{
"Id": "64d630da-3272-4477-9da5-09ef52196cca",
"FriendlyId": "sample string 2",
"Name": "sample string 3",
"KeyDate": "2025-12-12T16:35:34.3751482+00:00",
"CreatedTimestamp": "2025-12-12T16:35:34.3751482+00:00",
"ModifiedTimestamp": "2025-12-12T16:35:34.3751482+00:00",
"Keys": {
"7ccf215a-a984-4244-9657-e2dd12578a57": "sample string 2",
"a2009271-76f7-4e8b-8c32-4be5649f25d3": "sample string 4"
}
}
]
}
application/xml, text/xml
Sample:
<AnalyticQueryResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XCapture.DTO">
<KeyQuestionsMetaData>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>b1d24421-72e8-4bad-b286-9721e45feb2d</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>b1d24421-72e8-4bad-b286-9721e45feb2d</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
</KeyQuestionsMetaData>
<Query>
<EndTimestamp>2025-12-12T16:35:34.3751482+00:00</EndTimestamp>
<Id>74bd0872-156b-4989-8a62-5b66b3cbe0d8</Id>
<IncludeBlanks>true</IncludeBlanks>
<KeyDate>b79d1422-cb4f-4b4b-bfbb-54271d75487b</KeyDate>
<KeyQuestions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:guid>6596b414-84f5-4a36-84cf-aaa2709963dd</d3p1:guid>
<d3p1:guid>20285e7a-0e1b-49dc-9208-3d25f7aa911b</d3p1:guid>
</KeyQuestions>
<Name>sample string 2</Name>
<OrganizationIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:guid>1d0fc7e8-1763-484d-a498-0db3dea75eea</d3p1:guid>
<d3p1:guid>493a0cc8-9cf7-40b5-8a46-9d724e9cbe9b</d3p1:guid>
</OrganizationIds>
<QuestionFilters>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>b1d24421-72e8-4bad-b286-9721e45feb2d</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>b1d24421-72e8-4bad-b286-9721e45feb2d</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
</QuestionFilters>
<Save>true</Save>
<StartTimestamp>2025-12-12T16:35:34.3751482+00:00</StartTimestamp>
<StateFilters>
<StateSimple>
<Id>005e4fe7-ab87-4374-9fbd-a49aef2a8404</Id>
<Name>sample string 2</Name>
</StateSimple>
<StateSimple>
<Id>005e4fe7-ab87-4374-9fbd-a49aef2a8404</Id>
<Name>sample string 2</Name>
</StateSimple>
</StateFilters>
<Template>sample string 3</Template>
</Query>
<Results>
<CaseAnalysisRecord>
<CreatedTimestamp>2025-12-12T16:35:34.3751482+00:00</CreatedTimestamp>
<FriendlyId>sample string 2</FriendlyId>
<Id>64d630da-3272-4477-9da5-09ef52196cca</Id>
<KeyDate>2025-12-12T16:35:34.3751482+00:00</KeyDate>
<Keys xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfguidstring>
<d4p1:Key>7ccf215a-a984-4244-9657-e2dd12578a57</d4p1:Key>
<d4p1:Value>sample string 2</d4p1:Value>
</d4p1:KeyValueOfguidstring>
<d4p1:KeyValueOfguidstring>
<d4p1:Key>a2009271-76f7-4e8b-8c32-4be5649f25d3</d4p1:Key>
<d4p1:Value>sample string 4</d4p1:Value>
</d4p1:KeyValueOfguidstring>
</Keys>
<ModifiedTimestamp>2025-12-12T16:35:34.3751482+00:00</ModifiedTimestamp>
<Name>sample string 3</Name>
</CaseAnalysisRecord>
<CaseAnalysisRecord>
<CreatedTimestamp>2025-12-12T16:35:34.3751482+00:00</CreatedTimestamp>
<FriendlyId>sample string 2</FriendlyId>
<Id>64d630da-3272-4477-9da5-09ef52196cca</Id>
<KeyDate>2025-12-12T16:35:34.3751482+00:00</KeyDate>
<Keys xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfguidstring>
<d4p1:Key>7ccf215a-a984-4244-9657-e2dd12578a57</d4p1:Key>
<d4p1:Value>sample string 2</d4p1:Value>
</d4p1:KeyValueOfguidstring>
<d4p1:KeyValueOfguidstring>
<d4p1:Key>a2009271-76f7-4e8b-8c32-4be5649f25d3</d4p1:Key>
<d4p1:Value>sample string 4</d4p1:Value>
</d4p1:KeyValueOfguidstring>
</Keys>
<ModifiedTimestamp>2025-12-12T16:35:34.3751482+00:00</ModifiedTimestamp>
<Name>sample string 3</Name>
</CaseAnalysisRecord>
</Results>
</AnalyticQueryResult>