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": "86d677dd-3923-4126-a680-6e04f9ee25be",
"Name": "sample string 2",
"Template": "sample string 3",
"OrganizationIds": [
"b999d0c2-2f5e-4d42-b26a-85a7c5540e19",
"c7dd3209-60e4-449e-bfa2-8fdae6f35123"
],
"StartTimestamp": "2026-04-13T06:11:48.4358081+00:00",
"EndTimestamp": "2026-04-13T06:11:48.4358081+00:00",
"KeyQuestions": [
"9db4b765-8a5a-43ca-9f06-2f3fb0e1c90f",
"146fe108-1381-4a4c-bb70-38a3cd241682"
],
"KeyDate": "b085e985-feaf-4501-ae6a-3a67ef9f0821",
"QuestionFilters": [
{
"Id": "a2fc5383-d66d-4cfa-bf5d-d8589ad830a6",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
},
{
"Id": "a2fc5383-d66d-4cfa-bf5d-d8589ad830a6",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
}
],
"StateFilters": [
{
"Id": "b211657d-0922-48c5-86d0-1a022139d889",
"Name": "sample string 2"
},
{
"Id": "b211657d-0922-48c5-86d0-1a022139d889",
"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>2026-04-13T06:11:48.4358081+00:00</EndTimestamp>
<Id>86d677dd-3923-4126-a680-6e04f9ee25be</Id>
<IncludeBlanks>true</IncludeBlanks>
<KeyDate>b085e985-feaf-4501-ae6a-3a67ef9f0821</KeyDate>
<KeyQuestions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>9db4b765-8a5a-43ca-9f06-2f3fb0e1c90f</d2p1:guid>
<d2p1:guid>146fe108-1381-4a4c-bb70-38a3cd241682</d2p1:guid>
</KeyQuestions>
<Name>sample string 2</Name>
<OrganizationIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>b999d0c2-2f5e-4d42-b26a-85a7c5540e19</d2p1:guid>
<d2p1:guid>c7dd3209-60e4-449e-bfa2-8fdae6f35123</d2p1:guid>
</OrganizationIds>
<QuestionFilters>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>a2fc5383-d66d-4cfa-bf5d-d8589ad830a6</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>a2fc5383-d66d-4cfa-bf5d-d8589ad830a6</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
</QuestionFilters>
<Save>true</Save>
<StartTimestamp>2026-04-13T06:11:48.4358081+00:00</StartTimestamp>
<StateFilters>
<StateSimple>
<Id>b211657d-0922-48c5-86d0-1a022139d889</Id>
<Name>sample string 2</Name>
</StateSimple>
<StateSimple>
<Id>b211657d-0922-48c5-86d0-1a022139d889</Id>
<Name>sample string 2</Name>
</StateSimple>
</StateFilters>
<Template>sample string 3</Template>
</AnalyticQueryDTO>
application/x-www-form-urlencoded
Sample:
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": "6061a1b1-e219-4ea9-aeaf-f5cdee545f40",
"Name": "sample string 2",
"Template": "sample string 3",
"OrganizationIds": [
"572c43be-6b7d-46f5-9d5b-5e5e34518f3e",
"ca8be24e-0805-4f6d-9869-1bf98ef43d2a"
],
"StartTimestamp": "2026-04-13T06:11:48.4358081+00:00",
"EndTimestamp": "2026-04-13T06:11:48.4358081+00:00",
"KeyQuestions": [
"9aeec241-8c4b-4712-9dd5-f84ed05aa01c",
"1900bd15-7e35-4fc5-88d7-8005077ba4ca"
],
"KeyDate": "bfdb729e-4e82-466a-b01f-afe772b58d2a",
"QuestionFilters": [
{
"Id": "b2d5fdd2-7c84-423e-b77d-02e0d69920dd",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
},
{
"Id": "b2d5fdd2-7c84-423e-b77d-02e0d69920dd",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
}
],
"StateFilters": [
{
"Id": "a725accf-76d4-41fd-b6f1-1d772eb71911",
"Name": "sample string 2"
},
{
"Id": "a725accf-76d4-41fd-b6f1-1d772eb71911",
"Name": "sample string 2"
}
],
"IncludeBlanks": true,
"Save": true
},
"KeyQuestionsMetaData": [
{
"Id": "b2d5fdd2-7c84-423e-b77d-02e0d69920dd",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
},
{
"Id": "b2d5fdd2-7c84-423e-b77d-02e0d69920dd",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
}
],
"Results": [
{
"Id": "50f7b284-d192-4849-aad3-7272ce66d16e",
"FriendlyId": "sample string 2",
"Name": "sample string 3",
"KeyDate": "2026-04-13T06:11:48.4358081+00:00",
"CreatedTimestamp": "2026-04-13T06:11:48.4358081+00:00",
"ModifiedTimestamp": "2026-04-13T06:11:48.4358081+00:00",
"Keys": {
"527a2126-8ecf-447f-95e8-bfe91affd706": "sample string 2",
"c2788cf2-3cc8-4171-9a9b-4fa6ddcad59a": "sample string 4"
}
},
{
"Id": "50f7b284-d192-4849-aad3-7272ce66d16e",
"FriendlyId": "sample string 2",
"Name": "sample string 3",
"KeyDate": "2026-04-13T06:11:48.4358081+00:00",
"CreatedTimestamp": "2026-04-13T06:11:48.4358081+00:00",
"ModifiedTimestamp": "2026-04-13T06:11:48.4358081+00:00",
"Keys": {
"527a2126-8ecf-447f-95e8-bfe91affd706": "sample string 2",
"c2788cf2-3cc8-4171-9a9b-4fa6ddcad59a": "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>b2d5fdd2-7c84-423e-b77d-02e0d69920dd</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>b2d5fdd2-7c84-423e-b77d-02e0d69920dd</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
</KeyQuestionsMetaData>
<Query>
<EndTimestamp>2026-04-13T06:11:48.4358081+00:00</EndTimestamp>
<Id>6061a1b1-e219-4ea9-aeaf-f5cdee545f40</Id>
<IncludeBlanks>true</IncludeBlanks>
<KeyDate>bfdb729e-4e82-466a-b01f-afe772b58d2a</KeyDate>
<KeyQuestions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:guid>9aeec241-8c4b-4712-9dd5-f84ed05aa01c</d3p1:guid>
<d3p1:guid>1900bd15-7e35-4fc5-88d7-8005077ba4ca</d3p1:guid>
</KeyQuestions>
<Name>sample string 2</Name>
<OrganizationIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:guid>572c43be-6b7d-46f5-9d5b-5e5e34518f3e</d3p1:guid>
<d3p1:guid>ca8be24e-0805-4f6d-9869-1bf98ef43d2a</d3p1:guid>
</OrganizationIds>
<QuestionFilters>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>b2d5fdd2-7c84-423e-b77d-02e0d69920dd</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>b2d5fdd2-7c84-423e-b77d-02e0d69920dd</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
</QuestionFilters>
<Save>true</Save>
<StartTimestamp>2026-04-13T06:11:48.4358081+00:00</StartTimestamp>
<StateFilters>
<StateSimple>
<Id>a725accf-76d4-41fd-b6f1-1d772eb71911</Id>
<Name>sample string 2</Name>
</StateSimple>
<StateSimple>
<Id>a725accf-76d4-41fd-b6f1-1d772eb71911</Id>
<Name>sample string 2</Name>
</StateSimple>
</StateFilters>
<Template>sample string 3</Template>
</Query>
<Results>
<CaseAnalysisRecord>
<CreatedTimestamp>2026-04-13T06:11:48.4358081+00:00</CreatedTimestamp>
<FriendlyId>sample string 2</FriendlyId>
<Id>50f7b284-d192-4849-aad3-7272ce66d16e</Id>
<KeyDate>2026-04-13T06:11:48.4358081+00:00</KeyDate>
<Keys xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfguidstring>
<d4p1:Key>527a2126-8ecf-447f-95e8-bfe91affd706</d4p1:Key>
<d4p1:Value>sample string 2</d4p1:Value>
</d4p1:KeyValueOfguidstring>
<d4p1:KeyValueOfguidstring>
<d4p1:Key>c2788cf2-3cc8-4171-9a9b-4fa6ddcad59a</d4p1:Key>
<d4p1:Value>sample string 4</d4p1:Value>
</d4p1:KeyValueOfguidstring>
</Keys>
<ModifiedTimestamp>2026-04-13T06:11:48.4358081+00:00</ModifiedTimestamp>
<Name>sample string 3</Name>
</CaseAnalysisRecord>
<CaseAnalysisRecord>
<CreatedTimestamp>2026-04-13T06:11:48.4358081+00:00</CreatedTimestamp>
<FriendlyId>sample string 2</FriendlyId>
<Id>50f7b284-d192-4849-aad3-7272ce66d16e</Id>
<KeyDate>2026-04-13T06:11:48.4358081+00:00</KeyDate>
<Keys xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfguidstring>
<d4p1:Key>527a2126-8ecf-447f-95e8-bfe91affd706</d4p1:Key>
<d4p1:Value>sample string 2</d4p1:Value>
</d4p1:KeyValueOfguidstring>
<d4p1:KeyValueOfguidstring>
<d4p1:Key>c2788cf2-3cc8-4171-9a9b-4fa6ddcad59a</d4p1:Key>
<d4p1:Value>sample string 4</d4p1:Value>
</d4p1:KeyValueOfguidstring>
</Keys>
<ModifiedTimestamp>2026-04-13T06:11:48.4358081+00:00</ModifiedTimestamp>
<Name>sample string 3</Name>
</CaseAnalysisRecord>
</Results>
</AnalyticQueryResult>