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. |
| Description | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"VehicleId": "7bd83868-baa7-4fce-9619-79197d836b09",
"VehicleName": "sample string 2",
"OperationId": 3,
"OperationBasicName": "sample string 4",
"OperationCost": 1.1,
"Mileage": 1,
"EngineDuration": 1,
"OperationUtc": "2026-12-04T11:52:03.7978394+00:00",
"AgentId": "2ab54aeb-42d3-4043-9783-5e15ce152555",
"AgentName": "sample string 6",
"Id": "cf4271c8-babe-4cbd-b5e1-3bd813c9a13e",
"CanEdit": true,
"Description": "sample string 8"
}
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>2ab54aeb-42d3-4043-9783-5e15ce152555</AgentId> <AgentName>sample string 6</AgentName> <CanEdit>true</CanEdit> <Description>sample string 8</Description> <EngineDuration>1</EngineDuration> <Id>cf4271c8-babe-4cbd-b5e1-3bd813c9a13e</Id> <Mileage>1</Mileage> <OperationBasicName>sample string 4</OperationBasicName> <OperationCost>1.1</OperationCost> <OperationId>3</OperationId> <OperationUtc>2026-12-04T11:52:03.7978394+00:00</OperationUtc> <VehicleId>7bd83868-baa7-4fce-9619-79197d836b09</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 | boolean |
None. |
|
| Errors | Collection of string |
None. |
|
| Data | 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>