PUT api/v2/FleetMaintenance/operation/{id}
Mise à jour d'une opération
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
OperationDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| OperationId | integer |
None. |
|
| Name | string |
Required String length: inclusive between 0 and 100 |
|
| ErisId | string |
String length: inclusive between 0 and 6 |
|
| Type | OperationType |
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": "38873c81-dd52-4e74-8c76-e9b3683ff5a1",
"OperationId": 1,
"Name": "sample string 2",
"ErisId": "sample string 3",
"Type": 0,
"CustomerId": "500f9d3f-3a75-4072-9024-6a6bc61ee3cb",
"CustomerName": "sample string 4",
"DistributorId": "e1f95963-adb4-4038-a1ba-271ca8f6d893",
"DistributorName": "sample string 5",
"OwnerName": "sample string 4"
}
application/xml, text/xml
Sample:
<OperationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.FleetMaintenance"> <CustomerId>500f9d3f-3a75-4072-9024-6a6bc61ee3cb</CustomerId> <CustomerName>sample string 4</CustomerName> <DistributorId>e1f95963-adb4-4038-a1ba-271ca8f6d893</DistributorId> <DistributorName>sample string 5</DistributorName> <ErisId>sample string 3</ErisId> <Id>38873c81-dd52-4e74-8c76-e9b3683ff5a1</Id> <Name>sample string 2</Name> <OperationId>1</OperationId> <Type>Curative</Type> </OperationDto>
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>