POST api/v2/FleetMaintenance/maintenanceplan/{id}/assign/{vehicleId}
Assigne un plan de maintenance à un véhicule
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
identifiant du plan |
integer |
Required |
vehicleId |
identifiant du véhicule |
globally unique identifier |
Required |
Body Parameters
AssignPlanRequestDtoName | Description | Type | Additional information |
---|---|---|---|
initialEntryIntoService | date |
Required |
|
alterable | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "initialEntryIntoService": "2025-05-14T10:46:53.492401+00:00", "alterable": true }
application/xml, text/xml
Sample:
<AssignPlanRequestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.FleetMaintenance"> <Alterable>true</Alterable> <InitialEntryIntoService>2025-05-14T10:46:53.492401+00:00</InitialEntryIntoService> </AssignPlanRequestDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseDtoName | 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>