POST Measures/CompareBy
Gets the CompareByMeasureResponse for the CompareByRequest
Request Information
URI Parameters
None.
Body Parameters
The set of request params needed to get an array of CompareByMeasureResponses
Smg.RestApi.Model.Measures.CompareByRequestRequest Formats
application/json, text/json
Sample:
{
"ProjectDefinedId": "sample string 2",
"ProjectIdentifier": "sample string 2",
"Username": "sample string 3",
"Language": "sample string 4",
"Skey": 5,
"Measures": [
1,
2
],
"ComparisonQuestionId": 1,
"DateRange": {
"StartDate": "2025-11-21T05:27:08.6414929-06:00",
"EndDate": "2025-11-21T05:27:08.6414929-06:00"
},
"GetBenchmarks": true
}
application/xml, text/xml
Sample:
<CompareByRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Smg.RestApi.Model.Measures">
<ComparisonQuestionId>1</ComparisonQuestionId>
<DateRange xmlns:d2p1="http://schemas.datacontract.org/2004/07/Smg.RestApi.Model">
<d2p1:EndDate>2025-11-21T05:27:08.6414929-06:00</d2p1:EndDate>
<d2p1:StartDate>2025-11-21T05:27:08.6414929-06:00</d2p1:StartDate>
</DateRange>
<GetBenchmarks>true</GetBenchmarks>
<Language>sample string 4</Language>
<Measures xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</Measures>
<ProjectDefinedId>sample string 2</ProjectDefinedId>
<ProjectIdentifier>sample string 2</ProjectIdentifier>
<Skey>5</Skey>
<Username>sample string 3</Username>
</CompareByRequest>
Response Information
Resource Description
Collection of Smg.RestApi.Model.Measures.CompareByMeasureResponseResponse Formats
application/json, text/json
Sample:
[
{
"QuestionId": 1,
"StartDate": "2025-11-21T05:27:08.6414929-06:00",
"EndDate": "2025-11-21T05:27:08.6414929-06:00",
"CompareByMeasures": [
{
"QuestionId": 1,
"Name": "sample string 2",
"CompareByScores": [
{
"AnswerValueId": 1,
"AnswerValueTitle": "sample string 2",
"nCount": 3,
"MeasureValue": "sample string 4",
"MeasureValueFormatted": "sample string 5"
},
{
"AnswerValueId": 1,
"AnswerValueTitle": "sample string 2",
"nCount": 3,
"MeasureValue": "sample string 4",
"MeasureValueFormatted": "sample string 5"
}
]
},
{
"QuestionId": 1,
"Name": "sample string 2",
"CompareByScores": [
{
"AnswerValueId": 1,
"AnswerValueTitle": "sample string 2",
"nCount": 3,
"MeasureValue": "sample string 4",
"MeasureValueFormatted": "sample string 5"
},
{
"AnswerValueId": 1,
"AnswerValueTitle": "sample string 2",
"nCount": 3,
"MeasureValue": "sample string 4",
"MeasureValueFormatted": "sample string 5"
}
]
}
],
"Benchmarks": [
{
"QuestionId": 1,
"Title": "sample string 2",
"StartDate": "2025-11-21T05:27:08.6414929-06:00",
"EndDate": "2025-11-21T05:27:08.6414929-06:00",
"ValueType": "Percent",
"Sentiment": "Neutral",
"ScoringCount": 5,
"nCount": 6,
"ResponseCount": 7,
"BenchmarkValue": "sample string 8",
"BenchmarkValueFormatted": "sample string 9"
},
{
"QuestionId": 1,
"Title": "sample string 2",
"StartDate": "2025-11-21T05:27:08.6414929-06:00",
"EndDate": "2025-11-21T05:27:08.6414929-06:00",
"ValueType": "Percent",
"Sentiment": "Neutral",
"ScoringCount": 5,
"nCount": 6,
"ResponseCount": 7,
"BenchmarkValue": "sample string 8",
"BenchmarkValueFormatted": "sample string 9"
}
]
},
{
"QuestionId": 1,
"StartDate": "2025-11-21T05:27:08.6414929-06:00",
"EndDate": "2025-11-21T05:27:08.6414929-06:00",
"CompareByMeasures": [
{
"QuestionId": 1,
"Name": "sample string 2",
"CompareByScores": [
{
"AnswerValueId": 1,
"AnswerValueTitle": "sample string 2",
"nCount": 3,
"MeasureValue": "sample string 4",
"MeasureValueFormatted": "sample string 5"
},
{
"AnswerValueId": 1,
"AnswerValueTitle": "sample string 2",
"nCount": 3,
"MeasureValue": "sample string 4",
"MeasureValueFormatted": "sample string 5"
}
]
},
{
"QuestionId": 1,
"Name": "sample string 2",
"CompareByScores": [
{
"AnswerValueId": 1,
"AnswerValueTitle": "sample string 2",
"nCount": 3,
"MeasureValue": "sample string 4",
"MeasureValueFormatted": "sample string 5"
},
{
"AnswerValueId": 1,
"AnswerValueTitle": "sample string 2",
"nCount": 3,
"MeasureValue": "sample string 4",
"MeasureValueFormatted": "sample string 5"
}
]
}
],
"Benchmarks": [
{
"QuestionId": 1,
"Title": "sample string 2",
"StartDate": "2025-11-21T05:27:08.6414929-06:00",
"EndDate": "2025-11-21T05:27:08.6414929-06:00",
"ValueType": "Percent",
"Sentiment": "Neutral",
"ScoringCount": 5,
"nCount": 6,
"ResponseCount": 7,
"BenchmarkValue": "sample string 8",
"BenchmarkValueFormatted": "sample string 9"
},
{
"QuestionId": 1,
"Title": "sample string 2",
"StartDate": "2025-11-21T05:27:08.6414929-06:00",
"EndDate": "2025-11-21T05:27:08.6414929-06:00",
"ValueType": "Percent",
"Sentiment": "Neutral",
"ScoringCount": 5,
"nCount": 6,
"ResponseCount": 7,
"BenchmarkValue": "sample string 8",
"BenchmarkValueFormatted": "sample string 9"
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfCompareByMeasureResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Smg.RestApi.Model.Measures">
<CompareByMeasureResponse>
<Benchmarks xmlns:d3p1="http://schemas.datacontract.org/2004/07/SMG.Report.Contracts.Measures">
<d3p1:Benchmark>
<d3p1:BenchmarkValue>sample string 8</d3p1:BenchmarkValue>
<d3p1:BenchmarkValueFormatted>sample string 9</d3p1:BenchmarkValueFormatted>
<d3p1:EndDate>2025-11-21T05:27:08.6414929-06:00</d3p1:EndDate>
<d3p1:QuestionId>1</d3p1:QuestionId>
<d3p1:ResponseCount>7</d3p1:ResponseCount>
<d3p1:ScoringCount>5</d3p1:ScoringCount>
<d3p1:Sentiment>Neutral</d3p1:Sentiment>
<d3p1:StartDate>2025-11-21T05:27:08.6414929-06:00</d3p1:StartDate>
<d3p1:Title>sample string 2</d3p1:Title>
<d3p1:ValueType>Percent</d3p1:ValueType>
<d3p1:nCount>6</d3p1:nCount>
</d3p1:Benchmark>
<d3p1:Benchmark>
<d3p1:BenchmarkValue>sample string 8</d3p1:BenchmarkValue>
<d3p1:BenchmarkValueFormatted>sample string 9</d3p1:BenchmarkValueFormatted>
<d3p1:EndDate>2025-11-21T05:27:08.6414929-06:00</d3p1:EndDate>
<d3p1:QuestionId>1</d3p1:QuestionId>
<d3p1:ResponseCount>7</d3p1:ResponseCount>
<d3p1:ScoringCount>5</d3p1:ScoringCount>
<d3p1:Sentiment>Neutral</d3p1:Sentiment>
<d3p1:StartDate>2025-11-21T05:27:08.6414929-06:00</d3p1:StartDate>
<d3p1:Title>sample string 2</d3p1:Title>
<d3p1:ValueType>Percent</d3p1:ValueType>
<d3p1:nCount>6</d3p1:nCount>
</d3p1:Benchmark>
</Benchmarks>
<CompareByMeasures>
<CompareByMeasure>
<CompareByScores>
<CompareByScore>
<AnswerValueId>1</AnswerValueId>
<AnswerValueTitle>sample string 2</AnswerValueTitle>
<MeasureValue>sample string 4</MeasureValue>
<MeasureValueFormatted>sample string 5</MeasureValueFormatted>
<nCount>3</nCount>
</CompareByScore>
<CompareByScore>
<AnswerValueId>1</AnswerValueId>
<AnswerValueTitle>sample string 2</AnswerValueTitle>
<MeasureValue>sample string 4</MeasureValue>
<MeasureValueFormatted>sample string 5</MeasureValueFormatted>
<nCount>3</nCount>
</CompareByScore>
</CompareByScores>
<Name>sample string 2</Name>
<QuestionId>1</QuestionId>
</CompareByMeasure>
<CompareByMeasure>
<CompareByScores>
<CompareByScore>
<AnswerValueId>1</AnswerValueId>
<AnswerValueTitle>sample string 2</AnswerValueTitle>
<MeasureValue>sample string 4</MeasureValue>
<MeasureValueFormatted>sample string 5</MeasureValueFormatted>
<nCount>3</nCount>
</CompareByScore>
<CompareByScore>
<AnswerValueId>1</AnswerValueId>
<AnswerValueTitle>sample string 2</AnswerValueTitle>
<MeasureValue>sample string 4</MeasureValue>
<MeasureValueFormatted>sample string 5</MeasureValueFormatted>
<nCount>3</nCount>
</CompareByScore>
</CompareByScores>
<Name>sample string 2</Name>
<QuestionId>1</QuestionId>
</CompareByMeasure>
</CompareByMeasures>
<EndDate>2025-11-21T05:27:08.6414929-06:00</EndDate>
<QuestionId>1</QuestionId>
<StartDate>2025-11-21T05:27:08.6414929-06:00</StartDate>
</CompareByMeasureResponse>
<CompareByMeasureResponse>
<Benchmarks xmlns:d3p1="http://schemas.datacontract.org/2004/07/SMG.Report.Contracts.Measures">
<d3p1:Benchmark>
<d3p1:BenchmarkValue>sample string 8</d3p1:BenchmarkValue>
<d3p1:BenchmarkValueFormatted>sample string 9</d3p1:BenchmarkValueFormatted>
<d3p1:EndDate>2025-11-21T05:27:08.6414929-06:00</d3p1:EndDate>
<d3p1:QuestionId>1</d3p1:QuestionId>
<d3p1:ResponseCount>7</d3p1:ResponseCount>
<d3p1:ScoringCount>5</d3p1:ScoringCount>
<d3p1:Sentiment>Neutral</d3p1:Sentiment>
<d3p1:StartDate>2025-11-21T05:27:08.6414929-06:00</d3p1:StartDate>
<d3p1:Title>sample string 2</d3p1:Title>
<d3p1:ValueType>Percent</d3p1:ValueType>
<d3p1:nCount>6</d3p1:nCount>
</d3p1:Benchmark>
<d3p1:Benchmark>
<d3p1:BenchmarkValue>sample string 8</d3p1:BenchmarkValue>
<d3p1:BenchmarkValueFormatted>sample string 9</d3p1:BenchmarkValueFormatted>
<d3p1:EndDate>2025-11-21T05:27:08.6414929-06:00</d3p1:EndDate>
<d3p1:QuestionId>1</d3p1:QuestionId>
<d3p1:ResponseCount>7</d3p1:ResponseCount>
<d3p1:ScoringCount>5</d3p1:ScoringCount>
<d3p1:Sentiment>Neutral</d3p1:Sentiment>
<d3p1:StartDate>2025-11-21T05:27:08.6414929-06:00</d3p1:StartDate>
<d3p1:Title>sample string 2</d3p1:Title>
<d3p1:ValueType>Percent</d3p1:ValueType>
<d3p1:nCount>6</d3p1:nCount>
</d3p1:Benchmark>
</Benchmarks>
<CompareByMeasures>
<CompareByMeasure>
<CompareByScores>
<CompareByScore>
<AnswerValueId>1</AnswerValueId>
<AnswerValueTitle>sample string 2</AnswerValueTitle>
<MeasureValue>sample string 4</MeasureValue>
<MeasureValueFormatted>sample string 5</MeasureValueFormatted>
<nCount>3</nCount>
</CompareByScore>
<CompareByScore>
<AnswerValueId>1</AnswerValueId>
<AnswerValueTitle>sample string 2</AnswerValueTitle>
<MeasureValue>sample string 4</MeasureValue>
<MeasureValueFormatted>sample string 5</MeasureValueFormatted>
<nCount>3</nCount>
</CompareByScore>
</CompareByScores>
<Name>sample string 2</Name>
<QuestionId>1</QuestionId>
</CompareByMeasure>
<CompareByMeasure>
<CompareByScores>
<CompareByScore>
<AnswerValueId>1</AnswerValueId>
<AnswerValueTitle>sample string 2</AnswerValueTitle>
<MeasureValue>sample string 4</MeasureValue>
<MeasureValueFormatted>sample string 5</MeasureValueFormatted>
<nCount>3</nCount>
</CompareByScore>
<CompareByScore>
<AnswerValueId>1</AnswerValueId>
<AnswerValueTitle>sample string 2</AnswerValueTitle>
<MeasureValue>sample string 4</MeasureValue>
<MeasureValueFormatted>sample string 5</MeasureValueFormatted>
<nCount>3</nCount>
</CompareByScore>
</CompareByScores>
<Name>sample string 2</Name>
<QuestionId>1</QuestionId>
</CompareByMeasure>
</CompareByMeasures>
<EndDate>2025-11-21T05:27:08.6414929-06:00</EndDate>
<QuestionId>1</QuestionId>
<StartDate>2025-11-21T05:27:08.6414929-06:00</StartDate>
</CompareByMeasureResponse>
</ArrayOfCompareByMeasureResponse>