POST api/mastervehicle/insert

Request Information

URI Parameters

None.

Body Parameters

MasterVehicle
NameDescriptionTypeAdditional information
VehicleId

integer

None.

VehicleCode

string

None.

VehicleNumber

string

None.

VehicleType

string

None.

Capacity

integer

None.

GpsDeviceId

string

None.

IsActive

boolean

None.

CreatedBy

string

None.

CreatedDate

date

None.

UpdatedBy

string

None.

UpdatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "VehicleId": 1,
  "VehicleCode": "sample string 2",
  "VehicleNumber": "sample string 3",
  "VehicleType": "sample string 4",
  "Capacity": 1,
  "GpsDeviceId": "sample string 5",
  "IsActive": true,
  "CreatedBy": "sample string 7",
  "CreatedDate": "2026-07-03T11:40:09.9795032+00:00",
  "UpdatedBy": "sample string 8",
  "UpdatedDate": "2026-07-03T11:40:09.9795032+00:00"
}

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.