POST api/v2/FleetMaintenance/maintenanceplan/{planId}/operation
Ajoute un opérations à un plan de maintenance
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| planId | integer |
Required |
Body Parameters
MaintenancePlanOperationDto| Name | Description | Type | Additional information |
|---|---|---|---|
| MaintenancePlanId |
Représente un plan d'entretien |
integer |
None. |
| OperationId |
Représente une opération basique |
integer |
Required |
| Operation |
Nom de l'opération |
string |
None. |
| DistanceRecur |
Type D'échéance : Kilométrage |
integer |
None. |
| EngineDurationRecur |
Type D'échéance : Heures Moteur |
integer |
None. |
| DurartionRecur |
Type D'échéance : Date (En nombre de mois) |
integer |
None. |
| IsUnique |
Opération unique : Elle ne se fait qu'une fois tout au long de la durée du véhicule |
boolean |
None. |
| DistributorId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"MaintenancePlanId": 1,
"OperationId": 4,
"Operation": "sample string 5",
"DistanceRecur": 1,
"EngineDurationRecur": 1,
"DurartionRecur": 1,
"IsUnique": true,
"DistributorId": "b04ac36e-2aa8-469f-86a8-c3b1d8c9e04d"
}
application/xml, text/xml
Sample:
<MaintenancePlanOperationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.FleetMaintenance"> <DistanceRecur>1</DistanceRecur> <DistributorId>b04ac36e-2aa8-469f-86a8-c3b1d8c9e04d</DistributorId> <DurartionRecur>1</DurartionRecur> <EngineDurationRecur>1</EngineDurationRecur> <Id>d61448c3-dddb-471e-b0fb-cf914de10f59</Id> <IsUnique>true</IsUnique> <MaintenancePlanDtoId>b41e41a5-b0eb-42ac-ac6d-e70953fdc351</MaintenancePlanDtoId> <Operation>sample string 5</Operation> <OperationId>4</OperationId> <MaintenancePlanId>1</MaintenancePlanId> </MaintenancePlanOperationDto>
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>