POST api/Vehicle/EditVehicle

Request Information

URI Parameters

None.

Body Parameters

VehicleInfo
NameDescriptionTypeAdditional information
Vehicle_Id

integer

None.

VehicleCode

string

None.

VehicleName

string

None.

IsActive

boolean

None.

CreatedBy

integer

None.

CreatedOn

date

None.

ModifiedBy

integer

None.

ModifiedOn

date

None.

Channel_Id

integer

None.

ChannelName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Vehicle_Id": 1,
  "VehicleCode": "sample string 2",
  "VehicleName": "sample string 3",
  "IsActive": true,
  "CreatedBy": 5,
  "CreatedOn": "2024-12-23T03:08:40.544432+05:30",
  "ModifiedBy": 1,
  "ModifiedOn": "2024-12-23T03:08:40.544432+05:30",
  "Channel_Id": 1,
  "ChannelName": "sample string 6"
}

application/xml, text/xml

Sample:
<VehicleInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProjectBLL.CustomModel">
  <ChannelName>sample string 6</ChannelName>
  <Channel_Id>1</Channel_Id>
  <CreatedBy>5</CreatedBy>
  <CreatedOn>2024-12-23T03:08:40.544432+05:30</CreatedOn>
  <IsActive>true</IsActive>
  <ModifiedBy>1</ModifiedBy>
  <ModifiedOn>2024-12-23T03:08:40.544432+05:30</ModifiedOn>
  <VehicleCode>sample string 2</VehicleCode>
  <VehicleName>sample string 3</VehicleName>
  <Vehicle_Id>1</Vehicle_Id>
</VehicleInfo>

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

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>