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 |
id interne ( dtoId ) |
globally unique identifier |
None. |
| OperationId |
Identifiant autoincrémenté de l'opération |
integer |
None. |
| Name |
Libellé de l'opération (ex : Remplacement batterie, entretien annuel, etc...) |
string |
Required String length: inclusive between 0 and 100 |
| ErisId |
Identifiant de l'opération dans le système ErisMotors |
string |
String length: inclusive between 0 and 6 |
| Type |
Type d'opération |
OperationType |
None. |
| CustomerId |
Identifiant du client |
globally unique identifier |
None. |
| CustomerName |
Nom du client |
string |
None. |
| DistributorId |
Identifiant du distributor |
globally unique identifier |
None. |
| DistributorName | string |
None. |
|
| OwnerName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "4628d819-0cfd-46bb-9a77-4aa9c3b2e69a",
"OperationId": 1,
"Name": "sample string 2",
"ErisId": "sample string 3",
"Type": 0,
"CustomerId": "7f21e4a2-53e4-4ce6-8844-5e6d24d6cdf7",
"CustomerName": "sample string 4",
"DistributorId": "f57bbd0b-5b89-4906-9ff8-66f1cb2e3019",
"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>7f21e4a2-53e4-4ce6-8844-5e6d24d6cdf7</CustomerId> <CustomerName>sample string 4</CustomerName> <DistributorId>f57bbd0b-5b89-4906-9ff8-66f1cb2e3019</DistributorId> <DistributorName>sample string 5</DistributorName> <ErisId>sample string 3</ErisId> <Id>4628d819-0cfd-46bb-9a77-4aa9c3b2e69a</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 |
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>