PUT api/Analytics?analysisId={analysisId}
Save changes to a particular analytic query
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| analysisId |
the query to update |
globally unique identifier |
Required |
Body Parameters
the details to update the query with
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": "0ab61225-0bed-444b-af46-6a5b03f87781",
"Name": "sample string 2",
"Template": "sample string 3",
"OrganizationIds": [
"359bf697-b8eb-4244-bedd-cd07fcab2b2b",
"3f53dfe2-021e-4a9a-94e7-5be45d6beed8"
],
"StartTimestamp": "2026-05-31T00:52:23.0466822+00:00",
"EndTimestamp": "2026-05-31T00:52:23.0466822+00:00",
"KeyQuestions": [
"fe01b574-ebec-4c31-bc4c-bd2b48391de5",
"80eb7356-bc4d-4279-8ebe-d7f88a4a93ca"
],
"KeyDate": "49f6eae7-1400-41e8-ab57-d5249ac0a901",
"QuestionFilters": [
{
"Id": "16bc237b-dcab-4dc8-9a93-93fb20bde4d5",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
},
{
"Id": "16bc237b-dcab-4dc8-9a93-93fb20bde4d5",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
}
],
"StateFilters": [
{
"Id": "a873b144-5c94-404f-80f5-ce40b1a1286c",
"Name": "sample string 2"
},
{
"Id": "a873b144-5c94-404f-80f5-ce40b1a1286c",
"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-05-31T00:52:23.0466822+00:00</EndTimestamp>
<Id>0ab61225-0bed-444b-af46-6a5b03f87781</Id>
<IncludeBlanks>true</IncludeBlanks>
<KeyDate>49f6eae7-1400-41e8-ab57-d5249ac0a901</KeyDate>
<KeyQuestions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>fe01b574-ebec-4c31-bc4c-bd2b48391de5</d2p1:guid>
<d2p1:guid>80eb7356-bc4d-4279-8ebe-d7f88a4a93ca</d2p1:guid>
</KeyQuestions>
<Name>sample string 2</Name>
<OrganizationIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>359bf697-b8eb-4244-bedd-cd07fcab2b2b</d2p1:guid>
<d2p1:guid>3f53dfe2-021e-4a9a-94e7-5be45d6beed8</d2p1:guid>
</OrganizationIds>
<QuestionFilters>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>16bc237b-dcab-4dc8-9a93-93fb20bde4d5</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>16bc237b-dcab-4dc8-9a93-93fb20bde4d5</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
</QuestionFilters>
<Save>true</Save>
<StartTimestamp>2026-05-31T00:52:23.0466822+00:00</StartTimestamp>
<StateFilters>
<StateSimple>
<Id>a873b144-5c94-404f-80f5-ce40b1a1286c</Id>
<Name>sample string 2</Name>
</StateSimple>
<StateSimple>
<Id>a873b144-5c94-404f-80f5-ce40b1a1286c</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": "f6a09218-5810-4714-9972-897543ffc2f8",
"Name": "sample string 2",
"Template": "sample string 3",
"OrganizationIds": [
"ade84438-5779-443f-844a-5360307136b4",
"7fe3c3fd-184c-45ae-9dd7-c5410394c5d0"
],
"StartTimestamp": "2026-05-31T00:52:23.0624516+00:00",
"EndTimestamp": "2026-05-31T00:52:23.0624516+00:00",
"KeyQuestions": [
"28dc42fa-d597-4c50-ac7e-237d8e9acd5e",
"48285fb3-291f-43f4-9fa6-d57b09de2465"
],
"KeyDate": "d64db11c-766c-4b3d-8c69-89a96553f024",
"QuestionFilters": [
{
"Id": "a23e8bf7-2f75-466f-8053-c4df3dc9a427",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
},
{
"Id": "a23e8bf7-2f75-466f-8053-c4df3dc9a427",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
}
],
"StateFilters": [
{
"Id": "3cb89183-e5bc-4ddb-9404-46036cbdfdbf",
"Name": "sample string 2"
},
{
"Id": "3cb89183-e5bc-4ddb-9404-46036cbdfdbf",
"Name": "sample string 2"
}
],
"IncludeBlanks": true,
"Save": true
},
"KeyQuestionsMetaData": [
{
"Id": "a23e8bf7-2f75-466f-8053-c4df3dc9a427",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
},
{
"Id": "a23e8bf7-2f75-466f-8053-c4df3dc9a427",
"Name": "sample string 2",
"Text": "sample string 3",
"Type": "sample string 4",
"OrderIndex": 5,
"Answers": null
}
],
"Results": [
{
"Id": "96fe6b99-34b9-45fd-b24d-efd58a5a76e8",
"FriendlyId": "sample string 2",
"Name": "sample string 3",
"KeyDate": "2026-05-31T00:52:23.0624516+00:00",
"CreatedTimestamp": "2026-05-31T00:52:23.0624516+00:00",
"ModifiedTimestamp": "2026-05-31T00:52:23.0624516+00:00",
"Keys": {
"c6624725-7553-4983-a57c-3c3f35ee6588": "sample string 2",
"53fae371-d45e-427a-884d-4f450de21c0f": "sample string 4"
}
},
{
"Id": "96fe6b99-34b9-45fd-b24d-efd58a5a76e8",
"FriendlyId": "sample string 2",
"Name": "sample string 3",
"KeyDate": "2026-05-31T00:52:23.0624516+00:00",
"CreatedTimestamp": "2026-05-31T00:52:23.0624516+00:00",
"ModifiedTimestamp": "2026-05-31T00:52:23.0624516+00:00",
"Keys": {
"c6624725-7553-4983-a57c-3c3f35ee6588": "sample string 2",
"53fae371-d45e-427a-884d-4f450de21c0f": "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>a23e8bf7-2f75-466f-8053-c4df3dc9a427</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>a23e8bf7-2f75-466f-8053-c4df3dc9a427</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
</KeyQuestionsMetaData>
<Query>
<EndTimestamp>2026-05-31T00:52:23.0624516+00:00</EndTimestamp>
<Id>f6a09218-5810-4714-9972-897543ffc2f8</Id>
<IncludeBlanks>true</IncludeBlanks>
<KeyDate>d64db11c-766c-4b3d-8c69-89a96553f024</KeyDate>
<KeyQuestions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:guid>28dc42fa-d597-4c50-ac7e-237d8e9acd5e</d3p1:guid>
<d3p1:guid>48285fb3-291f-43f4-9fa6-d57b09de2465</d3p1:guid>
</KeyQuestions>
<Name>sample string 2</Name>
<OrganizationIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:guid>ade84438-5779-443f-844a-5360307136b4</d3p1:guid>
<d3p1:guid>7fe3c3fd-184c-45ae-9dd7-c5410394c5d0</d3p1:guid>
</OrganizationIds>
<QuestionFilters>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>a23e8bf7-2f75-466f-8053-c4df3dc9a427</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
<ReportQuestionDetail>
<Answers i:nil="true" />
<Id>a23e8bf7-2f75-466f-8053-c4df3dc9a427</Id>
<Name>sample string 2</Name>
<Text>sample string 3</Text>
<Type>sample string 4</Type>
</ReportQuestionDetail>
</QuestionFilters>
<Save>true</Save>
<StartTimestamp>2026-05-31T00:52:23.0624516+00:00</StartTimestamp>
<StateFilters>
<StateSimple>
<Id>3cb89183-e5bc-4ddb-9404-46036cbdfdbf</Id>
<Name>sample string 2</Name>
</StateSimple>
<StateSimple>
<Id>3cb89183-e5bc-4ddb-9404-46036cbdfdbf</Id>
<Name>sample string 2</Name>
</StateSimple>
</StateFilters>
<Template>sample string 3</Template>
</Query>
<Results>
<CaseAnalysisRecord>
<CreatedTimestamp>2026-05-31T00:52:23.0624516+00:00</CreatedTimestamp>
<FriendlyId>sample string 2</FriendlyId>
<Id>96fe6b99-34b9-45fd-b24d-efd58a5a76e8</Id>
<KeyDate>2026-05-31T00:52:23.0624516+00:00</KeyDate>
<Keys xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfguidstring>
<d4p1:Key>c6624725-7553-4983-a57c-3c3f35ee6588</d4p1:Key>
<d4p1:Value>sample string 2</d4p1:Value>
</d4p1:KeyValueOfguidstring>
<d4p1:KeyValueOfguidstring>
<d4p1:Key>53fae371-d45e-427a-884d-4f450de21c0f</d4p1:Key>
<d4p1:Value>sample string 4</d4p1:Value>
</d4p1:KeyValueOfguidstring>
</Keys>
<ModifiedTimestamp>2026-05-31T00:52:23.0624516+00:00</ModifiedTimestamp>
<Name>sample string 3</Name>
</CaseAnalysisRecord>
<CaseAnalysisRecord>
<CreatedTimestamp>2026-05-31T00:52:23.0624516+00:00</CreatedTimestamp>
<FriendlyId>sample string 2</FriendlyId>
<Id>96fe6b99-34b9-45fd-b24d-efd58a5a76e8</Id>
<KeyDate>2026-05-31T00:52:23.0624516+00:00</KeyDate>
<Keys xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfguidstring>
<d4p1:Key>c6624725-7553-4983-a57c-3c3f35ee6588</d4p1:Key>
<d4p1:Value>sample string 2</d4p1:Value>
</d4p1:KeyValueOfguidstring>
<d4p1:KeyValueOfguidstring>
<d4p1:Key>53fae371-d45e-427a-884d-4f450de21c0f</d4p1:Key>
<d4p1:Value>sample string 4</d4p1:Value>
</d4p1:KeyValueOfguidstring>
</Keys>
<ModifiedTimestamp>2026-05-31T00:52:23.0624516+00:00</ModifiedTimestamp>
<Name>sample string 3</Name>
</CaseAnalysisRecord>
</Results>
</AnalyticQueryResult>