PUT UpdateVehicle

Get storage card and update parameters.

Request Information

URI Parameters

None.

Body Parameters

VehicleRequest
NameDescriptionTypeAdditional information
VehicleId

Id of vehicle, only required for PUT requests
Send in null for POST

globally unique identifier

None.

LicensePlate

License plate

string

Max length: 15

CustomerPlate

Customer license plate

string

Max length: 15

VehicleIdentification

VIN

string

Max length: 30

EuNumber

EU identification number

string

Max length: 50

CustomerID

Id of customer, optional

globally unique identifier

None.

ContactID

Id of contact, optional

globally unique identifier

None.

Make

Make of vehicle e.g. Volvo

string

Max length: 100

Model

Model of the vehicle e.g. XC90

string

Max length: 100

YearModel

Model year e.g. 2020

string

Max length: 20

Colour

Colour of the vehicle

string

Max length: 20

VehicleTypeID

Vehicle type id, optional

globally unique identifier

None.

Odometer

Odometer, optional

integer

None.

EnginePowerKw

Engine power in kilo watt, optional

decimal number

None.

Weight

Optional

integer

None.

TotalWeight

Optional

integer

None.

MaxLoadWeight

Optional

integer

None.

TrailerWeight

Optional

integer

None.

NumberOfAxles

Optional

integer

None.

Note

Optional

string

None.

TopSpeed

Optional

integer

None.

EUVehicleCategory

Optional

string

Max length: 50

FrontAxleLoad

Optional

integer

None.

ReartAxleLoad

Optional

integer

None.

ModelCode

Optional

string

Max length: 50

BusClass

Optional

string

Max length: 50

VehicleTypeCode

Optional

string

Max length: 50

VehicleTypeClass

Optional

string

Max length: 50

GroupNumber

Optional

string

Max length: 50

TradeName

Optional

string

Max length: 50

ModelNumber

Optional

string

Max length: 50

EngineNumber

Optional

string

Max length: 50

VehicleYear

Optional

string

Max length: 50

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "VehicleId": "9ebcb5d8-f6c2-4d3f-8083-bd707f138576",
  "LicensePlate": "sample string 1",
  "CustomerPlate": "sample string 2",
  "VehicleIdentification": "sample string 3",
  "EuNumber": "sample string 4",
  "CustomerID": "1d700d2a-2bfd-4570-8339-34424b6c82f9",
  "ContactID": "f034b5a3-64cf-42eb-8c56-62faf620ea33",
  "Make": "sample string 5",
  "Model": "sample string 6",
  "YearModel": "sample string 7",
  "Colour": "sample string 8",
  "VehicleTypeID": "a9e6ee8d-da5d-497b-92af-35afe313ce9b",
  "Odometer": 1,
  "EnginePowerKw": 1.0,
  "Weight": 1,
  "TotalWeight": 1,
  "MaxLoadWeight": 1,
  "TrailerWeight": 1,
  "NumberOfAxles": 1,
  "Note": "sample string 9",
  "TopSpeed": 1,
  "EUVehicleCategory": "sample string 10",
  "FrontAxleLoad": 1,
  "ReartAxleLoad": 1,
  "ModelCode": "sample string 11",
  "BusClass": "sample string 12",
  "VehicleTypeCode": "sample string 13",
  "VehicleTypeClass": "sample string 14",
  "GroupNumber": "sample string 15",
  "TradeName": "sample string 16",
  "ModelNumber": "sample string 17",
  "EngineNumber": "sample string 18",
  "VehicleYear": "sample string 19"
}

application/xml, text/xml

Sample:
<VehicleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.TyreHotel">
  <BusClass>sample string 12</BusClass>
  <Colour>sample string 8</Colour>
  <ContactID>f034b5a3-64cf-42eb-8c56-62faf620ea33</ContactID>
  <CustomerID>1d700d2a-2bfd-4570-8339-34424b6c82f9</CustomerID>
  <CustomerPlate>sample string 2</CustomerPlate>
  <EUVehicleCategory>sample string 10</EUVehicleCategory>
  <EngineNumber>sample string 18</EngineNumber>
  <EnginePowerKw>1</EnginePowerKw>
  <EuNumber>sample string 4</EuNumber>
  <FrontAxleLoad>1</FrontAxleLoad>
  <GroupNumber>sample string 15</GroupNumber>
  <LicensePlate>sample string 1</LicensePlate>
  <Make>sample string 5</Make>
  <MaxLoadWeight>1</MaxLoadWeight>
  <Model>sample string 6</Model>
  <ModelCode>sample string 11</ModelCode>
  <ModelNumber>sample string 17</ModelNumber>
  <Note>sample string 9</Note>
  <NumberOfAxles>1</NumberOfAxles>
  <Odometer>1</Odometer>
  <ReartAxleLoad>1</ReartAxleLoad>
  <TopSpeed>1</TopSpeed>
  <TotalWeight>1</TotalWeight>
  <TradeName>sample string 16</TradeName>
  <TrailerWeight>1</TrailerWeight>
  <VehicleId>9ebcb5d8-f6c2-4d3f-8083-bd707f138576</VehicleId>
  <VehicleIdentification>sample string 3</VehicleIdentification>
  <VehicleTypeClass>sample string 14</VehicleTypeClass>
  <VehicleTypeCode>sample string 13</VehicleTypeCode>
  <VehicleTypeID>a9e6ee8d-da5d-497b-92af-35afe313ce9b</VehicleTypeID>
  <VehicleYear>sample string 19</VehicleYear>
  <Weight>1</Weight>
  <YearModel>sample string 7</YearModel>
</VehicleRequest>

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 'VehicleRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.