POST api/VehicleIoT?apiKey={apiKey}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
apiKey

string

Required

Body Parameters

Collection of VehicleIoT
NameDescriptionTypeAdditional information
PlateNo

string

None.

RecordDate

date

None.

CurrentOdometer

decimal number

None.

OverSpeeding

integer

None.

HarshBraking

integer

None.

SuddenAcceleration

integer

None.

HarshCornering

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "PlateNo": "sample string 2",
    "RecordDate": "2023-12-08T19:21:04.7020283+04:00",
    "CurrentOdometer": 4.1,
    "OverSpeeding": 5,
    "HarshBraking": 6,
    "SuddenAcceleration": 7,
    "HarshCornering": 8
  },
  {
    "PlateNo": "sample string 2",
    "RecordDate": "2023-12-08T19:21:04.7020283+04:00",
    "CurrentOdometer": 4.1,
    "OverSpeeding": 5,
    "HarshBraking": 6,
    "SuddenAcceleration": 7,
    "HarshCornering": 8
  }
]

application/xml, text/xml

Sample:
<ArrayOfVehicleIoT xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity.Vehicles">
  <VehicleIoT>
    <CurrentOdometer>4.1</CurrentOdometer>
    <HarshBraking>6</HarshBraking>
    <HarshCornering>8</HarshCornering>
    <OverSpeeding>5</OverSpeeding>
    <PlateNo>sample string 2</PlateNo>
    <RecordDate>2023-12-08T19:21:04.7020283+04:00</RecordDate>
    <SuddenAcceleration>7</SuddenAcceleration>
  </VehicleIoT>
  <VehicleIoT>
    <CurrentOdometer>4.1</CurrentOdometer>
    <HarshBraking>6</HarshBraking>
    <HarshCornering>8</HarshCornering>
    <OverSpeeding>5</OverSpeeding>
    <PlateNo>sample string 2</PlateNo>
    <RecordDate>2023-12-08T19:21:04.7020283+04:00</RecordDate>
    <SuddenAcceleration>7</SuddenAcceleration>
  </VehicleIoT>
</ArrayOfVehicleIoT>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResult
NameDescriptionTypeAdditional information
Status

ErrorCode

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "Message": "sample string 1"
}

application/xml, text/xml

Sample:
<ApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Service.Models">
  <Message>sample string 1</Message>
  <Status>Success</Status>
</ApiResult>