POST api/v0/Vehicle/UpdateVehicle

Request Information

URI Parameters

None.

Body Parameters

VehicleContract
NameDescriptionTypeAdditional information
VehicleId

integer

None.

PlateNumber

string

None.

Description

string

None.

Remarks

string

None.

IsDisabled

boolean

None.

AssignedDriverId

integer

None.

Capacity

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "VehicleId": 1,
  "PlateNumber": "sample string 2",
  "Description": "sample string 3",
  "Remarks": "sample string 4",
  "IsDisabled": true,
  "AssignedDriverId": 1,
  "Capacity": 6.0
}

application/xml, text/xml

Sample:
<VehicleContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.agrifoodatsolutions.com/FDService/v0/contracts/2017/01">
  <AssignedDriverId>1</AssignedDriverId>
  <Capacity>6</Capacity>
  <Description>sample string 3</Description>
  <IsDisabled>true</IsDisabled>
  <PlateNumber>sample string 2</PlateNumber>
  <Remarks>sample string 4</Remarks>
  <VehicleId>1</VehicleId>
</VehicleContract>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>