PUT api/vehicles/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
VehicleInputViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| model | string |
Required |
|
| year | string |
Required |
|
| type | integer |
Required |
|
| registered_date | date |
Required |
|
| plate_number | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"model": "sample string 1",
"year": "sample string 2",
"type": 3,
"registered_date": "2025-10-27T21:24:07.7510753+08:00",
"plate_number": "sample string 5"
}
application/xml, text/xml
Sample:
<VehicleInputViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/autocenter_api.Models.ViewModel"> <model>sample string 1</model> <plate_number>sample string 5</plate_number> <registered_date>2025-10-27T21:24:07.7510753+08:00</registered_date> <type>3</type> <year>sample string 2</year> </VehicleInputViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.