POST api/machines/{machineID}/uploadCounters?regCode={regCode}

Upload Counter Collection Data

Request Information

URI Parameters

NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional information
CollectionTime

date

None.

Counters

Collection of CounterRecord

None.

Request Formats

application/json, text/json

Sample:
{
  "CollectionTime": "2024-07-01T12:44:30.4710717+00:00",
  "Counters": [
    {
      "CounterType": 1,
      "Value": 2
    },
    {
      "CounterType": 1,
      "Value": 2
    }
  ]
}

text/html

Sample:
{"CollectionTime":"2024-07-01T12:44:30.4710717+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>2024-07-01T12:44:30.4710717+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.