POST api/BatteryStats
Send a device battery percentage from a registered device. Saved in BatteryStats table. Generally called by client-side application during Match Scouting after completion of each match
Request Information
URI Parameters
None.
Body Parameters
BatteryStatName | Description | Type | Additional information |
---|---|---|---|
BatteryStatID | integer |
None. |
|
CompCode | string |
None. |
|
ScoutGroup | string |
None. |
|
DeviceID | integer |
None. |
|
BatteryLevel | decimal number |
None. |
|
BatteryTime | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "BatteryStatID": 1, "CompCode": "sample string 2", "ScoutGroup": "sample string 3", "DeviceID": 4, "BatteryLevel": 5.1, "BatteryTime": "2025-06-17T06:36:25.0778777+00:00" }
application/xml, text/xml
Sample:
<BatteryStat xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FiresUniAPI.Models"> <BatteryLevel>5.1</BatteryLevel> <BatteryStatID>1</BatteryStatID> <BatteryTime>2025-06-17T06:36:25.0778777+00:00</BatteryTime> <CompCode>sample string 2</CompCode> <DeviceID>4</DeviceID> <ScoutGroup>sample string 3</ScoutGroup> </BatteryStat>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
200 (OK) with Device ID on success
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.