POST api/EventReporting/ReportEvent

Request Information

URI Parameters

None.

Body Parameters

EventReportModel
NameDescriptionTypeAdditional information
EventTime

date

None.

Location

LocationModel

None.

EventType

string

None.

ObjectID

globally unique identifier

None.

Name

string

None.

AdditionalData

string

None.

RecordType

string

None.

RecordVersionValue

integer

None.

LastModificationDate

date

None.

LastModified

integer

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "EventTime": "2018-10-15T15:32:17.426117+03:00",
  "Location": {
    "Longitude": 1.1,
    "Latitude": 1.1,
    "Accuracy": 1.1,
    "Speed": 1.1,
    "Battery": 1.1,
    "ReadingTime": "2018-10-15T15:32:17.426117+03:00",
    "Altitude": 1.1,
    "NumberOfSats": 1,
    "BatteryLevel": 1.1
  },
  "EventType": "sample string 1",
  "ObjectID": "d036178a-43bd-4411-a296-d8c067ffdbf6",
  "Name": "sample string 3",
  "AdditionalData": "sample string 4",
  "RecordType": "sample string 5",
  "RecordVersionValue": 6,
  "LastModificationDate": "2018-10-15T15:32:17.4281165+03:00",
  "LastModified": 8,
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<EventReportModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeritaTech.TransportRegistry.Data.Models">
  <IsDeleted>true</IsDeleted>
  <LastModificationDate>2018-10-15T15:32:17.4281165+03:00</LastModificationDate>
  <LastModified>8</LastModified>
  <AdditionalData>sample string 4</AdditionalData>
  <Name>sample string 3</Name>
  <ObjectID>d036178a-43bd-4411-a296-d8c067ffdbf6</ObjectID>
  <RecordType>sample string 5</RecordType>
  <RecordVersionValue>6</RecordVersionValue>
  <EventTime>2018-10-15T15:32:17.426117+03:00</EventTime>
  <EventType>sample string 1</EventType>
  <Location>
    <Accuracy>1.1</Accuracy>
    <Altitude>1.1</Altitude>
    <Battery>1.1</Battery>
    <BatteryLevel>1.1</BatteryLevel>
    <Latitude>1.1</Latitude>
    <Longitude>1.1</Longitude>
    <NumberOfSats>1</NumberOfSats>
    <ReadingTime>2018-10-15T15:32:17.426117+03:00</ReadingTime>
    <Speed>1.1</Speed>
  </Location>
</EventReportModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EventReportModel'.

Response Information

Resource Description

MobileSessionResponseModel
NameDescriptionTypeAdditional information
IsRegistered

boolean

None.

SessionID

globally unique identifier

None.

DeviceID

globally unique identifier

None.

ContactID

globally unique identifier

None.

ErrorMessage

string

None.

ErrorCode

eErrorCodes

None.

HTMLViewData

string

None.

IsRemoteAddress

boolean

None.

HostAddress

string

None.

HashCode

string

None.

LocalData

Collection of byte

None.

LocalDataID

globally unique identifier

None.

Command

string

None.

CommandID

globally unique identifier

None.

CommandMessage

string

None.

ValidationToken

string

None.

RequiresDriverPIN

boolean

None.

HasMultipleEmployees

boolean

None.

HasMultipleVehicles

boolean

None.

ApplicationMode

integer

None.

DVRMode

integer

None.

StartActivity

string

None.

StartPage

string

None.

StartPageArgs

string

None.

ReportCategories

Collection of RecordDescriptorModel

None.

ReportChannels

Collection of RecordDescriptorModel

None.

SubscibedReportChannels

Collection of RecordDescriptorModel

None.

Response Formats

application/json, text/json

Sample:
{
  "IsRegistered": true,
  "SessionID": "f3de2075-ab4e-48bc-8efb-2d7f4cab66ae",
  "DeviceID": "2e839b3b-35b8-4eb9-ab21-902e6f41950b",
  "ContactID": "387793f0-dea8-4664-b83a-d32e101046a3",
  "ErrorMessage": "sample string 3",
  "ErrorCode": 0,
  "HTMLViewData": "sample string 4",
  "IsRemoteAddress": true,
  "HostAddress": "sample string 6",
  "HashCode": "sample string 7",
  "LocalData": "QEA=",
  "LocalDataID": "6c777a4d-ac7f-4a3e-8c67-2ba191f44798",
  "Command": "sample string 8",
  "CommandID": "ea17454f-5e77-4894-9691-8f7ff3a69037",
  "CommandMessage": "sample string 9",
  "ValidationToken": "sample string 10",
  "RequiresDriverPIN": true,
  "HasMultipleEmployees": true,
  "HasMultipleVehicles": true,
  "ApplicationMode": 1,
  "DVRMode": 1,
  "StartActivity": "sample string 14",
  "StartPage": "sample string 15",
  "StartPageArgs": "sample string 16",
  "ReportCategories": [
    {
      "ObjectID": "68642bd2-426c-45f4-8884-1cf0b4cd1b87",
      "Name": "sample string 2",
      "AdditionalData": "sample string 3",
      "RecordType": "sample string 4",
      "RecordVersionValue": 5,
      "LastModificationDate": "2018-10-15T15:32:17.7391198+03:00",
      "LastModified": 7,
      "IsDeleted": true
    },
    {
      "ObjectID": "68642bd2-426c-45f4-8884-1cf0b4cd1b87",
      "Name": "sample string 2",
      "AdditionalData": "sample string 3",
      "RecordType": "sample string 4",
      "RecordVersionValue": 5,
      "LastModificationDate": "2018-10-15T15:32:17.7391198+03:00",
      "LastModified": 7,
      "IsDeleted": true
    }
  ],
  "ReportChannels": [
    {
      "ObjectID": "68642bd2-426c-45f4-8884-1cf0b4cd1b87",
      "Name": "sample string 2",
      "AdditionalData": "sample string 3",
      "RecordType": "sample string 4",
      "RecordVersionValue": 5,
      "LastModificationDate": "2018-10-15T15:32:17.7391198+03:00",
      "LastModified": 7,
      "IsDeleted": true
    },
    {
      "ObjectID": "68642bd2-426c-45f4-8884-1cf0b4cd1b87",
      "Name": "sample string 2",
      "AdditionalData": "sample string 3",
      "RecordType": "sample string 4",
      "RecordVersionValue": 5,
      "LastModificationDate": "2018-10-15T15:32:17.7391198+03:00",
      "LastModified": 7,
      "IsDeleted": true
    }
  ],
  "SubscibedReportChannels": [
    {
      "ObjectID": "68642bd2-426c-45f4-8884-1cf0b4cd1b87",
      "Name": "sample string 2",
      "AdditionalData": "sample string 3",
      "RecordType": "sample string 4",
      "RecordVersionValue": 5,
      "LastModificationDate": "2018-10-15T15:32:17.7391198+03:00",
      "LastModified": 7,
      "IsDeleted": true
    },
    {
      "ObjectID": "68642bd2-426c-45f4-8884-1cf0b4cd1b87",
      "Name": "sample string 2",
      "AdditionalData": "sample string 3",
      "RecordType": "sample string 4",
      "RecordVersionValue": 5,
      "LastModificationDate": "2018-10-15T15:32:17.7391198+03:00",
      "LastModified": 7,
      "IsDeleted": true
    }
  ]
}

application/xml, text/xml

Sample:
<MobileSessionResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeritaTech.TransportRegistry.Data.Models">
  <ApplicationMode>1</ApplicationMode>
  <Command>sample string 8</Command>
  <CommandID>ea17454f-5e77-4894-9691-8f7ff3a69037</CommandID>
  <CommandMessage>sample string 9</CommandMessage>
  <ContactID>387793f0-dea8-4664-b83a-d32e101046a3</ContactID>
  <DVRMode>1</DVRMode>
  <DeviceID>2e839b3b-35b8-4eb9-ab21-902e6f41950b</DeviceID>
  <ErrorCode>None</ErrorCode>
  <ErrorMessage>sample string 3</ErrorMessage>
  <HTMLViewData>sample string 4</HTMLViewData>
  <HasMultipleEmployees>true</HasMultipleEmployees>
  <HasMultipleVehicles>true</HasMultipleVehicles>
  <HashCode>sample string 7</HashCode>
  <HostAddress>sample string 6</HostAddress>
  <IsRegistered>true</IsRegistered>
  <IsRemoteAddress>true</IsRemoteAddress>
  <LocalData>QEA=</LocalData>
  <LocalDataID>6c777a4d-ac7f-4a3e-8c67-2ba191f44798</LocalDataID>
  <ReportCategories>
    <RecordDescriptorModel>
      <IsDeleted>true</IsDeleted>
      <LastModificationDate>2018-10-15T15:32:17.7391198+03:00</LastModificationDate>
      <LastModified>7</LastModified>
      <AdditionalData>sample string 3</AdditionalData>
      <Name>sample string 2</Name>
      <ObjectID>68642bd2-426c-45f4-8884-1cf0b4cd1b87</ObjectID>
      <RecordType>sample string 4</RecordType>
      <RecordVersionValue>5</RecordVersionValue>
    </RecordDescriptorModel>
    <RecordDescriptorModel>
      <IsDeleted>true</IsDeleted>
      <LastModificationDate>2018-10-15T15:32:17.7391198+03:00</LastModificationDate>
      <LastModified>7</LastModified>
      <AdditionalData>sample string 3</AdditionalData>
      <Name>sample string 2</Name>
      <ObjectID>68642bd2-426c-45f4-8884-1cf0b4cd1b87</ObjectID>
      <RecordType>sample string 4</RecordType>
      <RecordVersionValue>5</RecordVersionValue>
    </RecordDescriptorModel>
  </ReportCategories>
  <ReportChannels>
    <RecordDescriptorModel>
      <IsDeleted>true</IsDeleted>
      <LastModificationDate>2018-10-15T15:32:17.7391198+03:00</LastModificationDate>
      <LastModified>7</LastModified>
      <AdditionalData>sample string 3</AdditionalData>
      <Name>sample string 2</Name>
      <ObjectID>68642bd2-426c-45f4-8884-1cf0b4cd1b87</ObjectID>
      <RecordType>sample string 4</RecordType>
      <RecordVersionValue>5</RecordVersionValue>
    </RecordDescriptorModel>
    <RecordDescriptorModel>
      <IsDeleted>true</IsDeleted>
      <LastModificationDate>2018-10-15T15:32:17.7391198+03:00</LastModificationDate>
      <LastModified>7</LastModified>
      <AdditionalData>sample string 3</AdditionalData>
      <Name>sample string 2</Name>
      <ObjectID>68642bd2-426c-45f4-8884-1cf0b4cd1b87</ObjectID>
      <RecordType>sample string 4</RecordType>
      <RecordVersionValue>5</RecordVersionValue>
    </RecordDescriptorModel>
  </ReportChannels>
  <RequiresDriverPIN>true</RequiresDriverPIN>
  <SessionID>f3de2075-ab4e-48bc-8efb-2d7f4cab66ae</SessionID>
  <StartActivity>sample string 14</StartActivity>
  <StartPage>sample string 15</StartPage>
  <StartPageArgs>sample string 16</StartPageArgs>
  <SubscibedReportChannels>
    <RecordDescriptorModel>
      <IsDeleted>true</IsDeleted>
      <LastModificationDate>2018-10-15T15:32:17.7391198+03:00</LastModificationDate>
      <LastModified>7</LastModified>
      <AdditionalData>sample string 3</AdditionalData>
      <Name>sample string 2</Name>
      <ObjectID>68642bd2-426c-45f4-8884-1cf0b4cd1b87</ObjectID>
      <RecordType>sample string 4</RecordType>
      <RecordVersionValue>5</RecordVersionValue>
    </RecordDescriptorModel>
    <RecordDescriptorModel>
      <IsDeleted>true</IsDeleted>
      <LastModificationDate>2018-10-15T15:32:17.7391198+03:00</LastModificationDate>
      <LastModified>7</LastModified>
      <AdditionalData>sample string 3</AdditionalData>
      <Name>sample string 2</Name>
      <ObjectID>68642bd2-426c-45f4-8884-1cf0b4cd1b87</ObjectID>
      <RecordType>sample string 4</RecordType>
      <RecordVersionValue>5</RecordVersionValue>
    </RecordDescriptorModel>
  </SubscibedReportChannels>
  <ValidationToken>sample string 10</ValidationToken>
</MobileSessionResponseModel>