PUT api/v{version}/Assets/UpdateByID/{id}?key={key}
Updates the asset with the specified id
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| key |
The API key |
string |
Required |
| id |
The id of the asset to be updated |
integer |
Required |
| version | string |
None. |
Body Parameters
The updated asset
AssetUpdateByIdDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Brand | string |
None. |
|
| Code |
Chassis number |
string |
None. |
| Colour | string |
None. |
|
| ConstructionDate | date |
None. |
|
| CylinderCapacity | integer |
None. |
|
| EngineCode | string |
None. |
|
| EuroNorm | string |
None. |
|
| ExternalId | string |
None. |
|
| FirstRegistration | date |
None. |
|
| Fuel | string |
None. |
|
| Header1 | string |
None. |
|
| Header2 | string |
None. |
|
| Header3 | string |
None. |
|
| Kilowatt | integer |
None. |
|
| Mileage | integer |
None. |
|
| Model | string |
None. |
|
| ModelType | string |
None. |
|
| Name |
License plate |
string |
None. |
| NextTechnicalControl | date |
None. |
|
| Notes | string |
None. |
|
| OwnerId | integer |
None. |
|
| DriverId | integer |
None. |
|
| CustomerID | integer |
None. |
|
| PriceAgreementWith | integer |
None. |
|
| InvoiceTo | integer |
None. |
|
| Leasing | integer |
None. |
|
| Insurance | integer |
None. |
|
| PrimaryImage | string |
None. |
|
| Transmission | string |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Brand": "sample string 1",
"Code": "sample string 2",
"Colour": "sample string 3",
"ConstructionDate": "2025-12-19T10:24:50.7502176+01:00",
"CylinderCapacity": 1,
"EngineCode": "sample string 4",
"EuroNorm": "sample string 5",
"ExternalId": "sample string 6",
"FirstRegistration": "2025-12-19T10:24:50.7502176+01:00",
"Fuel": "sample string 7",
"Header1": "sample string 8",
"Header2": "sample string 9",
"Header3": "sample string 10",
"Kilowatt": 1,
"Mileage": 1,
"Model": "sample string 11",
"ModelType": "sample string 12",
"Name": "sample string 13",
"NextTechnicalControl": "2025-12-19T10:24:50.7502176+01:00",
"Notes": "sample string 14",
"OwnerId": 1,
"DriverId": 1,
"CustomerID": 1,
"PriceAgreementWith": 1,
"InvoiceTo": 1,
"Leasing": 1,
"Insurance": 1,
"PrimaryImage": "sample string 15",
"Transmission": "sample string 16",
"Latitude": 1.0,
"Longitude": 1.0
}
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |