POST api/v2/FleetMaintenance/historyOperation
Ajoute une opération à l'historique d'un véhicule
Request Information
URI Parameters
None.
Body Parameters
VehicleHistoryOperationViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| VehicleId |
Représente un véhicule |
globally unique identifier |
None. |
| VehicleName | string |
None. |
|
| OperationId |
Représente une opération basique |
integer |
None. |
| OperationBasicName | string |
None. |
|
| OperationCost | decimal number |
None. |
|
| Mileage |
Type D'échéance : Kilométrage |
integer |
None. |
| EngineDuration |
Type D'échéance : Heures Moteur |
integer |
None. |
| OperationUtc |
Type D'échéance : Date |
date |
Data type: Date |
| AgentId |
Représente un concessionaire |
globally unique identifier |
None. |
| AgentName | string |
None. |
|
| Id | globally unique identifier |
None. |
|
| CanEdit |
Indique si un historique peut être édité ou non |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"VehicleId": "736bd9fb-fb60-48e8-b9d9-79aa6ff809b5",
"VehicleName": "sample string 2",
"OperationId": 3,
"OperationBasicName": "sample string 4",
"OperationCost": 1.1,
"Mileage": 1,
"EngineDuration": 1,
"OperationUtc": "2026-03-06T00:21:22.9020033+00:00",
"AgentId": "2f0ea2f3-f427-4fcf-b4e4-cd65048bb281",
"AgentName": "sample string 6",
"Id": "39ebed52-7380-49e7-a860-da24013a6c04",
"CanEdit": true
}
application/xml, text/xml
Sample:
<VehicleHistoryOperationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/B2Fleet.Web.Models.Admin.FleetMaintenance"> <AgentId>2f0ea2f3-f427-4fcf-b4e4-cd65048bb281</AgentId> <AgentName>sample string 6</AgentName> <CanEdit>true</CanEdit> <EngineDuration>1</EngineDuration> <Id>39ebed52-7380-49e7-a860-da24013a6c04</Id> <Mileage>1</Mileage> <OperationBasicName>sample string 4</OperationBasicName> <OperationCost>1.1</OperationCost> <OperationId>3</OperationId> <OperationUtc>2026-03-06T00:21:22.9020033+00:00</OperationUtc> <VehicleId>736bd9fb-fb60-48e8-b9d9-79aa6ff809b5</VehicleId> <VehicleName>sample string 2</VehicleName> </VehicleHistoryOperationViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseDto| Name | Description | Type | Additional information |
|---|---|---|---|
| IsValid |
Valdie ? |
boolean |
None. |
| Errors |
liste d'erreurs |
Collection of string |
None. |
| Data |
Objet à retourner |
Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsValid": true,
"Errors": [
"sample string 1",
"sample string 2"
],
"Data": {}
}
application/xml, text/xml
Sample:
<ResponseDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto">
<Data />
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Errors>
<IsValid>true</IsValid>
</ResponseDto>