GET api/Stat/{id}
Fast method to get Stat by id.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
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. |
Response 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:52:35.7534691+00:00",
"comment": "sample string 7",
"orgboard_position": {},
"last_3_vals": {}
}
application/xml, text/xml
Sample:
<ApiStat xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <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:52:35.7534691+00:00</date_from_showing> <comment>sample string 7</comment> <orgboard_position /> <last_3_vals /> </ApiStat>