POST api/Vehicles/addeditvehicles
Request Information
URI Parameters
None.
Body Parameters
vehicle| Name | Description | Type | Additional information |
|---|---|---|---|
| carid | integer |
None. |
|
| stock | string |
None. |
|
| cardate | date |
None. |
|
| year | integer |
None. |
|
| model | string |
None. |
|
| color | string |
None. |
|
| km | string |
None. |
|
| vin | string |
None. |
|
| orijin | string |
None. |
|
| purchaseprice | decimal number |
None. |
|
| limitprice | decimal number |
None. |
|
| saleprice | decimal number |
None. |
|
| make | string |
None. |
|
| branch | string |
None. |
|
| carfaxfile | string |
None. |
|
| LastStatus | string |
None. |
|
| EmployeeName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"carid": 1,
"stock": "sample string 2",
"cardate": "2026-01-09T01:00:45.8708954+05:30",
"year": 1,
"model": "sample string 3",
"color": "sample string 4",
"km": "sample string 5",
"vin": "sample string 6",
"orijin": "sample string 7",
"purchaseprice": 1.0,
"limitprice": 1.0,
"saleprice": 1.0,
"make": "sample string 8",
"branch": "sample string 9",
"carfaxfile": "sample string 10",
"LastStatus": "sample string 11",
"EmployeeName": "sample string 12"
}
application/xml, text/xml
Sample:
<vehicle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pwacrmapi"> <EmployeeName>sample string 12</EmployeeName> <LastStatus>sample string 11</LastStatus> <branch>sample string 9</branch> <cardate>2026-01-09T01:00:45.8708954+05:30</cardate> <carfaxfile>sample string 10</carfaxfile> <carid>1</carid> <color>sample string 4</color> <km>sample string 5</km> <limitprice>1</limitprice> <make>sample string 8</make> <model>sample string 3</model> <orijin>sample string 7</orijin> <purchaseprice>1</purchaseprice> <saleprice>1</saleprice> <stock>sample string 2</stock> <vin>sample string 6</vin> <year>1</year> </vehicle>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Dictionary of string [key] and Object [value]Response Formats
application/json, text/json
Sample:
{
"sample string 1": {},
"sample string 3": {}
}
application/xml, text/xml
Sample:
<ArrayOfKeyValueOfstringanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<KeyValueOfstringanyType>
<Key>sample string 1</Key>
<Value />
</KeyValueOfstringanyType>
<KeyValueOfstringanyType>
<Key>sample string 3</Key>
<Value />
</KeyValueOfstringanyType>
</ArrayOfKeyValueOfstringanyType>