POST api/v2/FleetMaintenance/maintenanceplan
Création d'un plan de maintenance
Request Information
URI Parameters
None.
Body Parameters
MaintenancePlanDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
id interne ( dtoId ) |
globally unique identifier |
None. |
| MaintenancePlanId |
Identifiant autoincrémenté dU plan d'entretien |
integer |
None. |
| Name |
Libellé du plan d'entretien (ex :DAF-XF-EURO5-MX11, etc...) |
string |
Required String length: inclusive between 0 and 150 |
| BrandId |
Marque du véhicule |
integer |
None. |
| BrandName |
Nom de ma marque du véhicule |
string |
None. |
| ModelId |
Modèle du véhicule |
integer |
None. |
| ModelName |
Nom Modèle du véhicule |
string |
None. |
| Alterable |
Un attribut permettant de détérminer si un plan d'entretien est Modifiable ou non |
boolean |
None. |
| Job |
Métier du véhicule |
ModelJob |
None. |
| CustomerId |
Identifiant du client |
globally unique identifier |
None. |
| CustomerName | string |
None. |
|
| DistributorId |
Identifiant du distributor |
globally unique identifier |
None. |
| DistributorName | string |
None. |
|
| OwnerName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "0650b437-f2ed-46d8-b7a7-d555c12440d8",
"MaintenancePlanId": 1,
"Name": "sample string 2",
"BrandId": 3,
"BrandName": "sample string 4",
"ModelId": 5,
"ModelName": "sample string 6",
"Alterable": true,
"Job": 0,
"CustomerId": "155e7b9a-0da2-40e4-bbca-494e8e2e32be",
"CustomerName": "sample string 8",
"DistributorId": "d997deff-acfe-4139-908b-c534e42be0ea",
"DistributorName": "sample string 9",
"OwnerName": "sample string 8"
}
application/xml, text/xml
Sample:
<MaintenancePlanDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.FleetMaintenance"> <Alterable>true</Alterable> <BrandId>3</BrandId> <BrandName>sample string 4</BrandName> <CustomerId>155e7b9a-0da2-40e4-bbca-494e8e2e32be</CustomerId> <CustomerName>sample string 8</CustomerName> <DistributorId>d997deff-acfe-4139-908b-c534e42be0ea</DistributorId> <DistributorName>sample string 9</DistributorName> <Id>0650b437-f2ed-46d8-b7a7-d555c12440d8</Id> <Job>LongDistances_40T</Job> <MaintenancePlanId>1</MaintenancePlanId> <ModelId>5</ModelId> <ModelName>sample string 6</ModelName> <Name>sample string 2</Name> </MaintenancePlanDto>
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>