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 | globally unique identifier |
None. |
|
| MaintenancePlanId | integer |
None. |
|
| Name | string |
Required String length: inclusive between 0 and 150 |
|
| BrandId | integer |
None. |
|
| BrandName | string |
None. |
|
| ModelId | integer |
None. |
|
| ModelName | string |
None. |
|
| Alterable | boolean |
None. |
|
| Job | ModelJob |
None. |
|
| CustomerId | globally unique identifier |
None. |
|
| CustomerName | string |
None. |
|
| DistributorId | globally unique identifier |
None. |
|
| DistributorName | string |
None. |
|
| OwnerName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "351693dc-4c11-490c-8f49-14eb924e656a",
"MaintenancePlanId": 1,
"Name": "sample string 2",
"BrandId": 3,
"BrandName": "sample string 4",
"ModelId": 5,
"ModelName": "sample string 6",
"Alterable": true,
"Job": 0,
"CustomerId": "b6d806a9-82ee-4cdb-97e8-6c1c08a80f37",
"CustomerName": "sample string 8",
"DistributorId": "32b4d2e3-0eda-4ee4-a264-837e314d261c",
"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>b6d806a9-82ee-4cdb-97e8-6c1c08a80f37</CustomerId> <CustomerName>sample string 8</CustomerName> <DistributorId>32b4d2e3-0eda-4ee4-a264-837e314d261c</DistributorId> <DistributorName>sample string 9</DistributorName> <Id>351693dc-4c11-490c-8f49-14eb924e656a</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 | 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>