POST api/AddOnlineMessageR
Request Information
URI Parameters
None.
Body Parameters
cOnlineMessagesName | Description | Type | Additional information |
---|---|---|---|
CompanyID | integer |
None. |
|
VehicleID | string |
None. |
|
ReadingDate | date |
None. |
|
EventCode | integer |
None. |
|
WaterLevel | integer |
None. |
|
FuelLevel | integer |
None. |
|
Temperature | integer |
None. |
|
FuelCounter | integer |
None. |
|
CarsOnlineInfo | cCarsOnlineInfo |
None. |
|
CarsOnlineInfoList | Collection of cCarsOnlineInfo |
None. |
Request Formats
application/json, text/json
Sample:
{ "CompanyID": 1, "VehicleID": "sample string 2", "ReadingDate": "2025-04-26T21:22:04.7667387+00:00", "EventCode": 4, "WaterLevel": 5, "FuelLevel": 6, "Temperature": 7, "FuelCounter": 8, "CarsOnlineInfo": { "CompanyID": 1, "VehicleID": "sample string 2", "VehicleDescription": "sample string 3", "MessageId": 4, "PositionDate": "2025-04-26T21:22:04.7667387+00:00", "PositionTime": "2025-04-26T21:22:04.7667387+00:00", "FullPositionDateTime": "2025-04-26T21:22:04.7667387+00:00", "EventCode": 8, "EventType": "sample string 9", "EventInfo": "sample string 10", "DriverId": "sample string 11", "DriverName": "sample string 12", "ChargeId": "sample string 13", "ChargeName": "sample string 14", "GPSStatus": "sample string 15", "Latitude": 16.1, "Longitude": 17.1, "Heading": 18, "DriveType": 19, "NeedService": 20, "CurrentOdometer": 21.1, "CurrentEngineHours": 22.1, "CurrentSpeed": 23, "CurrentRPM": 24, "AccDecValue": 25, "Satellites": 26, "HardwareVer": 27, "SoftwareVer": 28, "BatteryLevel": 29.1, "WaterLevel": 30, "FuelLevel": 31.1, "Temperature": 32, "FuelCounter": 33, "GroupId": 34, "VehicleType": 35, "EId": 36 }, "CarsOnlineInfoList": [ { "CompanyID": 1, "VehicleID": "sample string 2", "VehicleDescription": "sample string 3", "MessageId": 4, "PositionDate": "2025-04-26T21:22:04.7667387+00:00", "PositionTime": "2025-04-26T21:22:04.7667387+00:00", "FullPositionDateTime": "2025-04-26T21:22:04.7667387+00:00", "EventCode": 8, "EventType": "sample string 9", "EventInfo": "sample string 10", "DriverId": "sample string 11", "DriverName": "sample string 12", "ChargeId": "sample string 13", "ChargeName": "sample string 14", "GPSStatus": "sample string 15", "Latitude": 16.1, "Longitude": 17.1, "Heading": 18, "DriveType": 19, "NeedService": 20, "CurrentOdometer": 21.1, "CurrentEngineHours": 22.1, "CurrentSpeed": 23, "CurrentRPM": 24, "AccDecValue": 25, "Satellites": 26, "HardwareVer": 27, "SoftwareVer": 28, "BatteryLevel": 29.1, "WaterLevel": 30, "FuelLevel": 31.1, "Temperature": 32, "FuelCounter": 33, "GroupId": 34, "VehicleType": 35, "EId": 36 }, { "CompanyID": 1, "VehicleID": "sample string 2", "VehicleDescription": "sample string 3", "MessageId": 4, "PositionDate": "2025-04-26T21:22:04.7667387+00:00", "PositionTime": "2025-04-26T21:22:04.7667387+00:00", "FullPositionDateTime": "2025-04-26T21:22:04.7667387+00:00", "EventCode": 8, "EventType": "sample string 9", "EventInfo": "sample string 10", "DriverId": "sample string 11", "DriverName": "sample string 12", "ChargeId": "sample string 13", "ChargeName": "sample string 14", "GPSStatus": "sample string 15", "Latitude": 16.1, "Longitude": 17.1, "Heading": 18, "DriveType": 19, "NeedService": 20, "CurrentOdometer": 21.1, "CurrentEngineHours": 22.1, "CurrentSpeed": 23, "CurrentRPM": 24, "AccDecValue": 25, "Satellites": 26, "HardwareVer": 27, "SoftwareVer": 28, "BatteryLevel": 29.1, "WaterLevel": 30, "FuelLevel": 31.1, "Temperature": 32, "FuelCounter": 33, "GroupId": 34, "VehicleType": 35, "EId": 36 } ] }
application/xml, text/xml
Sample:
<cOnlineMessages xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetSAPAPI.Models"> <CarsOnlineInfo> <AccDecValue>25</AccDecValue> <BatteryLevel>29.1</BatteryLevel> <ChargeId>sample string 13</ChargeId> <ChargeName>sample string 14</ChargeName> <CompanyID>1</CompanyID> <CurrentEngineHours>22.1</CurrentEngineHours> <CurrentOdometer>21.1</CurrentOdometer> <CurrentRPM>24</CurrentRPM> <CurrentSpeed>23</CurrentSpeed> <DriveType>19</DriveType> <DriverId>sample string 11</DriverId> <DriverName>sample string 12</DriverName> <EId>36</EId> <EventCode>8</EventCode> <EventInfo>sample string 10</EventInfo> <EventType>sample string 9</EventType> <FuelCounter>33</FuelCounter> <FuelLevel>31.1</FuelLevel> <FullPositionDateTime>2025-04-26T21:22:04.7667387+00:00</FullPositionDateTime> <GPSStatus>sample string 15</GPSStatus> <GroupId>34</GroupId> <HardwareVer>27</HardwareVer> <Heading>18</Heading> <Latitude>16.1</Latitude> <Longitude>17.1</Longitude> <MessageId>4</MessageId> <NeedService>20</NeedService> <PositionDate>2025-04-26T21:22:04.7667387+00:00</PositionDate> <PositionTime>2025-04-26T21:22:04.7667387+00:00</PositionTime> <Satellites>26</Satellites> <SoftwareVer>28</SoftwareVer> <Temperature>32</Temperature> <VehicleDescription>sample string 3</VehicleDescription> <VehicleID>sample string 2</VehicleID> <VehicleType>35</VehicleType> <WaterLevel>30</WaterLevel> </CarsOnlineInfo> <CarsOnlineInfoList> <cCarsOnlineInfo> <AccDecValue>25</AccDecValue> <BatteryLevel>29.1</BatteryLevel> <ChargeId>sample string 13</ChargeId> <ChargeName>sample string 14</ChargeName> <CompanyID>1</CompanyID> <CurrentEngineHours>22.1</CurrentEngineHours> <CurrentOdometer>21.1</CurrentOdometer> <CurrentRPM>24</CurrentRPM> <CurrentSpeed>23</CurrentSpeed> <DriveType>19</DriveType> <DriverId>sample string 11</DriverId> <DriverName>sample string 12</DriverName> <EId>36</EId> <EventCode>8</EventCode> <EventInfo>sample string 10</EventInfo> <EventType>sample string 9</EventType> <FuelCounter>33</FuelCounter> <FuelLevel>31.1</FuelLevel> <FullPositionDateTime>2025-04-26T21:22:04.7667387+00:00</FullPositionDateTime> <GPSStatus>sample string 15</GPSStatus> <GroupId>34</GroupId> <HardwareVer>27</HardwareVer> <Heading>18</Heading> <Latitude>16.1</Latitude> <Longitude>17.1</Longitude> <MessageId>4</MessageId> <NeedService>20</NeedService> <PositionDate>2025-04-26T21:22:04.7667387+00:00</PositionDate> <PositionTime>2025-04-26T21:22:04.7667387+00:00</PositionTime> <Satellites>26</Satellites> <SoftwareVer>28</SoftwareVer> <Temperature>32</Temperature> <VehicleDescription>sample string 3</VehicleDescription> <VehicleID>sample string 2</VehicleID> <VehicleType>35</VehicleType> <WaterLevel>30</WaterLevel> </cCarsOnlineInfo> <cCarsOnlineInfo> <AccDecValue>25</AccDecValue> <BatteryLevel>29.1</BatteryLevel> <ChargeId>sample string 13</ChargeId> <ChargeName>sample string 14</ChargeName> <CompanyID>1</CompanyID> <CurrentEngineHours>22.1</CurrentEngineHours> <CurrentOdometer>21.1</CurrentOdometer> <CurrentRPM>24</CurrentRPM> <CurrentSpeed>23</CurrentSpeed> <DriveType>19</DriveType> <DriverId>sample string 11</DriverId> <DriverName>sample string 12</DriverName> <EId>36</EId> <EventCode>8</EventCode> <EventInfo>sample string 10</EventInfo> <EventType>sample string 9</EventType> <FuelCounter>33</FuelCounter> <FuelLevel>31.1</FuelLevel> <FullPositionDateTime>2025-04-26T21:22:04.7667387+00:00</FullPositionDateTime> <GPSStatus>sample string 15</GPSStatus> <GroupId>34</GroupId> <HardwareVer>27</HardwareVer> <Heading>18</Heading> <Latitude>16.1</Latitude> <Longitude>17.1</Longitude> <MessageId>4</MessageId> <NeedService>20</NeedService> <PositionDate>2025-04-26T21:22:04.7667387+00:00</PositionDate> <PositionTime>2025-04-26T21:22:04.7667387+00:00</PositionTime> <Satellites>26</Satellites> <SoftwareVer>28</SoftwareVer> <Temperature>32</Temperature> <VehicleDescription>sample string 3</VehicleDescription> <VehicleID>sample string 2</VehicleID> <VehicleType>35</VehicleType> <WaterLevel>30</WaterLevel> </cCarsOnlineInfo> </CarsOnlineInfoList> <CompanyID>1</CompanyID> <EventCode>4</EventCode> <FuelCounter>8</FuelCounter> <FuelLevel>6</FuelLevel> <ReadingDate>2025-04-26T21:22:04.7667387+00:00</ReadingDate> <Temperature>7</Temperature> <VehicleID>sample string 2</VehicleID> <WaterLevel>5</WaterLevel> </cOnlineMessages>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
cResponseName | Description | Type | Additional information |
---|---|---|---|
bSuccess | boolean |
None. |
|
eReasonRspns | eReasonResponse |
None. |
|
sErroInfo | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "bSuccess": true, "eReasonRspns": 0, "sErroInfo": "sample string 2" }
application/xml, text/xml
Sample:
<cResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetSAPAPI.Models.Utilities"> <bSuccess>true</bSuccess> <eReasonRspns>ErDb</eReasonRspns> <sErroInfo>sample string 2</sErroInfo> </cResponse>