POST api/VehicleApi
Request Information
URI Parameters
None.
Body Parameters
VehicleViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| VehicleId | integer |
None. |
|
| VehicleTypeId | integer |
None. |
|
| VehicleNumber | string |
Required |
|
| EditLogNote | string |
None. |
|
| VehicleType | string |
None. |
|
| VehicleName | string |
Required |
|
| Manuf | string |
None. |
|
| Model | string |
None. |
|
| AC | string |
None. |
|
| SeatTypes | string |
None. |
|
| MaxSeats | integer |
Required |
|
| Mileage | decimal number |
None. |
|
| Color | string |
None. |
|
| Weels | integer |
None. |
|
| GPSId | integer |
None. |
|
| Note | string |
None. |
|
| CreatedBy | string |
None. |
|
| CreatedDate | date |
None. |
|
| UpdatedBy | string |
None. |
|
| UpdatedDate | date |
None. |
|
| SaaSid | string |
None. |
|
| Status | integer |
None. |
|
| TotalTrip | integer |
None. |
|
| TotalAmount | decimal number |
None. |
|
| TotalLocalTripAmount | decimal number |
None. |
|
| TotalTourAmount | decimal number |
None. |
|
| TotalCompanyTripAmount | decimal number |
None. |
|
| InsurenceAlertleftdays | integer |
None. |
|
| PermitAlertleftdays | integer |
None. |
|
| FCServiceAlertleftdays | integer |
None. |
|
| OilServiceAlertleftdays | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"VehicleId": 1,
"VehicleTypeId": 2,
"VehicleNumber": "sample string 3",
"EditLogNote": "sample string 4",
"VehicleType": "sample string 5",
"VehicleName": "sample string 6",
"Manuf": "sample string 7",
"Model": "sample string 8",
"AC": "sample string 9",
"SeatTypes": "sample string 10",
"MaxSeats": 11,
"Mileage": 12.0,
"Color": "sample string 13",
"Weels": 14,
"GPSId": 15,
"Note": "sample string 16",
"CreatedBy": "sample string 17",
"CreatedDate": "2026-07-18T00:59:19.5478747+05:30",
"UpdatedBy": "sample string 19",
"UpdatedDate": "2026-07-18T00:59:19.5478747+05:30",
"SaaSid": "sample string 21",
"Status": 22,
"TotalTrip": 23,
"TotalAmount": 24.0,
"TotalLocalTripAmount": 25.0,
"TotalTourAmount": 26.0,
"TotalCompanyTripAmount": 27.0,
"InsurenceAlertleftdays": 28,
"PermitAlertleftdays": 29,
"FCServiceAlertleftdays": 30,
"OilServiceAlertleftdays": 31
}
application/xml, text/xml
Sample:
<VehicleViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TMSPRO.BusinessModel"> <AC>sample string 9</AC> <Color>sample string 13</Color> <CreatedBy>sample string 17</CreatedBy> <CreatedDate>2026-07-18T00:59:19.5478747+05:30</CreatedDate> <EditLogNote>sample string 4</EditLogNote> <FCServiceAlertleftdays>30</FCServiceAlertleftdays> <GPSId>15</GPSId> <InsurenceAlertleftdays>28</InsurenceAlertleftdays> <Manuf>sample string 7</Manuf> <MaxSeats>11</MaxSeats> <Mileage>12</Mileage> <Model>sample string 8</Model> <Note>sample string 16</Note> <OilServiceAlertleftdays>31</OilServiceAlertleftdays> <PermitAlertleftdays>29</PermitAlertleftdays> <SaaSid>sample string 21</SaaSid> <SeatTypes>sample string 10</SeatTypes> <Status>22</Status> <TotalAmount>24</TotalAmount> <TotalCompanyTripAmount>27</TotalCompanyTripAmount> <TotalLocalTripAmount>25</TotalLocalTripAmount> <TotalTourAmount>26</TotalTourAmount> <TotalTrip>23</TotalTrip> <UpdatedBy>sample string 19</UpdatedBy> <UpdatedDate>2026-07-18T00:59:19.5478747+05:30</UpdatedDate> <VehicleId>1</VehicleId> <VehicleName>sample string 6</VehicleName> <VehicleNumber>sample string 3</VehicleNumber> <VehicleType>sample string 5</VehicleType> <VehicleTypeId>2</VehicleTypeId> <Weels>14</Weels> </VehicleViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse 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>