POST api/machines/{machineID}/uploadCounters?regCode={regCode}
Upload Counter Collection Data
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| machineID |
The machineID of the machine that the counter data was received from. |
string |
Required |
| regCode |
The registration code assigned to the tablet. Contained in RegistrationToken returned by "RequestRegistrationToken" |
string |
None. |
Body Parameters
CounterCollection| Name | Description | Type | Additional information |
|---|---|---|---|
| CollectionTime | date |
None. |
|
| Counters | Collection of CounterRecord |
None. |
Request Formats
application/json, text/json
Sample:
{
"CollectionTime": "2025-12-16T06:27:43.7951205+00:00",
"Counters": [
{
"CounterType": 1,
"Value": 2
},
{
"CounterType": 1,
"Value": 2
}
]
}
text/html
Sample:
{"CollectionTime":"2025-12-16T06:27:43.7951205+00:00","Counters":[{"CounterType":1,"Value":2},{"CounterType":1,"Value":2}]}
application/xml, text/xml
Sample:
<CounterCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GI.Tablet.Interface">
<CollectionTime>2025-12-16T06:27:43.7951205+00:00</CollectionTime>
<Counters>
<CounterRecord>
<CounterType>1</CounterType>
<Value>2</Value>
</CounterRecord>
<CounterRecord>
<CounterType>1</CounterType>
<Value>2</Value>
</CounterRecord>
</Counters>
</CounterCollection>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Upload Counter Collection Data
None.