POST api/Stat
We search stat values to update by period_begin and period begin. ID is NOT key to find actual value.
Request Information
URI Parameters
None.
Body Parameters
Collection of ApiStat| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| name | string |
None. |
|
| id_position_enters | integer |
None. |
|
| id_position_ref | integer |
None. |
|
| unit | string |
None. |
|
| stat_type | StatType |
None. |
|
| max_val | decimal number |
None. |
|
| min_val | decimal number |
None. |
|
| sign | boolean |
None. |
|
| view_period | StatPeriodType |
None. |
|
| period | StatPeriodType |
None. |
|
| value_type | integer |
None. |
|
| id_company | integer |
None. |
|
| id_aida |
funnel READ only |
integer |
None. |
| date_from_showing | date |
None. |
|
| comment | string |
None. |
|
| orgboard_position | Object |
None. |
|
| last_3_vals | Object |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"id": 1,
"name": "sample string 2",
"id_position_enters": 1,
"id_position_ref": 3,
"unit": "sample string 4",
"stat_type": 1,
"max_val": 1.1,
"min_val": 1.1,
"sign": true,
"view_period": 0,
"period": 0,
"value_type": 6,
"id_company": 1,
"id_aida": 1,
"date_from_showing": "2025-10-29T01:54:24.487283+00:00",
"comment": "sample string 7",
"orgboard_position": {},
"last_3_vals": {}
},
{
"id": 1,
"name": "sample string 2",
"id_position_enters": 1,
"id_position_ref": 3,
"unit": "sample string 4",
"stat_type": 1,
"max_val": 1.1,
"min_val": 1.1,
"sign": true,
"view_period": 0,
"period": 0,
"value_type": 6,
"id_company": 1,
"id_aida": 1,
"date_from_showing": "2025-10-29T01:54:24.487283+00:00",
"comment": "sample string 7",
"orgboard_position": {},
"last_3_vals": {}
}
]
application/xml, text/xml
Sample:
<ArrayOfApiStat xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ApiStat>
<id>1</id>
<name>sample string 2</name>
<id_position_enters>1</id_position_enters>
<id_position_ref>3</id_position_ref>
<unit>sample string 4</unit>
<stat_type>Simple</stat_type>
<max_val>1.1</max_val>
<min_val>1.1</min_val>
<sign>true</sign>
<view_period>None</view_period>
<period>None</period>
<value_type>6</value_type>
<id_company>1</id_company>
<id_aida>1</id_aida>
<date_from_showing>2025-10-29T01:54:24.487283+00:00</date_from_showing>
<comment>sample string 7</comment>
<orgboard_position />
<last_3_vals />
</ApiStat>
<ApiStat>
<id>1</id>
<name>sample string 2</name>
<id_position_enters>1</id_position_enters>
<id_position_ref>3</id_position_ref>
<unit>sample string 4</unit>
<stat_type>Simple</stat_type>
<max_val>1.1</max_val>
<min_val>1.1</min_val>
<sign>true</sign>
<view_period>None</view_period>
<period>None</period>
<value_type>6</value_type>
<id_company>1</id_company>
<id_aida>1</id_aida>
<date_from_showing>2025-10-29T01:54:24.487283+00:00</date_from_showing>
<comment>sample string 7</comment>
<orgboard_position />
<last_3_vals />
</ApiStat>
</ArrayOfApiStat>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |