POST api/Stats/CustomKpi
Request Information
URI Parameters
None.
Body Parameters
CustomKpiDto| Name | Description | Type | Additional information |
|---|---|---|---|
| customerId | integer |
None. |
|
| businessId | integer |
None. |
|
| startDate | date |
None. |
|
| endDate | date |
None. |
|
| id_operations | Collection of integer |
None. |
|
| id_areaManagers | Collection of integer |
None. |
|
| id_signs | Collection of integer |
None. |
|
| realData | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"customerId": 1,
"businessId": 2,
"startDate": "2025-12-26T05:04:38.9159314+01:00",
"endDate": "2025-12-26T05:04:38.9159314+01:00",
"id_operations": [
1,
2
],
"id_areaManagers": [
1,
2
],
"id_signs": [
1,
2
],
"realData": true
}
application/xml, text/xml
Sample:
<CustomKpiDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myReportysModels.DTO">
<businessId>2</businessId>
<customerId>1</customerId>
<endDate>2025-12-26T05:04:38.9159314+01:00</endDate>
<id_areaManagers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</id_areaManagers>
<id_operations xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</id_operations>
<id_signs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</id_signs>
<realData>true</realData>
<startDate>2025-12-26T05:04:38.9159314+01:00</startDate>
</CustomKpiDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CustomKpiResult| Name | Description | Type | Additional information |
|---|---|---|---|
| HeaderRows | Collection of Collection of string |
None. |
|
| BodyRows | Collection of CustomKpiBodyRow |
None. |
Response Formats
application/json, text/json
Sample:
{
"HeaderRows": [
[
"sample string 1",
"sample string 2"
],
[
"sample string 1",
"sample string 2"
]
],
"BodyRows": [
{
"CollapseId": "sample string 1",
"ParentCollapseId": "sample string 2",
"Columns": [
{
"Value": {},
"MaxValue": 1.0,
"Type": 0
},
{
"Value": {},
"MaxValue": 1.0,
"Type": 0
}
]
},
{
"CollapseId": "sample string 1",
"ParentCollapseId": "sample string 2",
"Columns": [
{
"Value": {},
"MaxValue": 1.0,
"Type": 0
},
{
"Value": {},
"MaxValue": 1.0,
"Type": 0
}
]
}
]
}
application/xml, text/xml
Sample:
<CustomKpiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myReportysModels.Statistics">
<BodyRows>
<CustomKpiBodyRow>
<CollapseId>sample string 1</CollapseId>
<Columns>
<CustomKpiItem>
<MaxValue>1</MaxValue>
<Type>String</Type>
<Value />
</CustomKpiItem>
<CustomKpiItem>
<MaxValue>1</MaxValue>
<Type>String</Type>
<Value />
</CustomKpiItem>
</Columns>
<ParentCollapseId>sample string 2</ParentCollapseId>
</CustomKpiBodyRow>
<CustomKpiBodyRow>
<CollapseId>sample string 1</CollapseId>
<Columns>
<CustomKpiItem>
<MaxValue>1</MaxValue>
<Type>String</Type>
<Value />
</CustomKpiItem>
<CustomKpiItem>
<MaxValue>1</MaxValue>
<Type>String</Type>
<Value />
</CustomKpiItem>
</Columns>
<ParentCollapseId>sample string 2</ParentCollapseId>
</CustomKpiBodyRow>
</BodyRows>
<HeaderRows xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:ArrayOfstring>
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</d2p1:ArrayOfstring>
<d2p1:ArrayOfstring>
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</d2p1:ArrayOfstring>
</HeaderRows>
</CustomKpiResult>