PUT api/v2/driver/{driverId}/contract
Met à jour un contract
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
driverId | globally unique identifier |
Required |
Body Parameters
DriverContractDefinitionDtoName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
DriverId | globally unique identifier |
None. |
|
MonthContract |
Nombre d'heures mensuelle du contrat |
decimal number |
None. |
ThresholdTimeSupWeek |
Seuil d'heures supplémentaires par semaine |
decimal number |
None. |
ThresholdTimeSupMonth |
Seuil d'heures supplémentaires par mois |
decimal number |
None. |
ContractType |
Type de contrat du conducteur |
ContractTypeDto |
None. |
EntryDate | date |
None. |
|
ReleaseDate | date |
None. |
|
DrivingType |
type de contrat de conduite |
DrivingTypeDto |
None. |
AbsenseProfileId | globally unique identifier |
None. |
|
ExpenseProfileId | globally unique identifier |
None. |
|
IndemnityProfileId | globally unique identifier |
None. |
|
RuptureMotif | RuptureMotif |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "DriverId": "99deb0fe-5241-447a-912d-89d37dce7162", "MonthContract": 1.0, "ThresholdTimeSupWeek": 2.0, "ThresholdTimeSupMonth": 3.0, "ContractType": 0, "EntryDate": "2025-08-16T17:15:57.2292388+00:00", "ReleaseDate": "2025-08-16T17:15:57.2292388+00:00", "DrivingType": 0, "AbsenseProfileId": "fc4e4a51-412c-4dfb-abd2-2efd6ac33ec9", "ExpenseProfileId": "7582ee9a-75e4-4739-b4af-b1abeba129ea", "IndemnityProfileId": "9241e567-477b-46a1-b081-3a8848e275b8", "RuptureMotif": 11 }
application/xml, text/xml
Sample:
<DriverContractDefinitionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts"> <AbsenseProfileId>fc4e4a51-412c-4dfb-abd2-2efd6ac33ec9</AbsenseProfileId> <ContractType>CDI</ContractType> <DriverId>99deb0fe-5241-447a-912d-89d37dce7162</DriverId> <DrivingType>LongDistance</DrivingType> <EntryDate>2025-08-16T17:15:57.2292388+00:00</EntryDate> <ExpenseProfileId>7582ee9a-75e4-4739-b4af-b1abeba129ea</ExpenseProfileId> <IndemnityProfileId>9241e567-477b-46a1-b081-3a8848e275b8</IndemnityProfileId> <MonthContract>1</MonthContract> <ReleaseDate>2025-08-16T17:15:57.2292388+00:00</ReleaseDate> <RuptureMotif>LicenciementLiquidation</RuptureMotif> <ThresholdTimeSupMonth>3</ThresholdTimeSupMonth> <ThresholdTimeSupWeek>2</ThresholdTimeSupWeek> <Id>1</Id> </DriverContractDefinitionDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GenResponseDtoOfDriverContractDefinitionDtoName | Description | Type | Additional information |
---|---|---|---|
IsValid | boolean |
None. |
|
Errors | Collection of string |
None. |
|
Data | DriverContractDefinitionDto |
None. |
|
CmdId | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{ "IsValid": true, "Errors": [ "sample string 1", "sample string 2" ], "Data": { "Id": 1, "DriverId": "d88b4670-99bd-47fd-8d17-597833e0f374", "MonthContract": 1.0, "ThresholdTimeSupWeek": 2.0, "ThresholdTimeSupMonth": 3.0, "ContractType": 0, "EntryDate": "2025-08-16T17:15:57.2613677+00:00", "ReleaseDate": "2025-08-16T17:15:57.2613677+00:00", "DrivingType": 0, "AbsenseProfileId": "36254eea-fe01-4100-ad4a-3232ef0e127c", "ExpenseProfileId": "8b055b31-a219-45a3-8b02-6f2b4907110a", "IndemnityProfileId": "1314df24-de0b-4cbf-9470-dcc4136b04f6", "RuptureMotif": 11 }, "CmdId": "7ed127b5-12b5-47ca-bd5f-a09ed2f4e289" }
application/xml, text/xml
Sample:
<GenResponseDtoOfDriverContractDefinitionDtot4T_So3Vz xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto"> <CmdId>7ed127b5-12b5-47ca-bd5f-a09ed2f4e289</CmdId> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts"> <d2p1:AbsenseProfileId>36254eea-fe01-4100-ad4a-3232ef0e127c</d2p1:AbsenseProfileId> <d2p1:ContractType>CDI</d2p1:ContractType> <d2p1:DriverId>d88b4670-99bd-47fd-8d17-597833e0f374</d2p1:DriverId> <d2p1:DrivingType>LongDistance</d2p1:DrivingType> <d2p1:EntryDate>2025-08-16T17:15:57.2613677+00:00</d2p1:EntryDate> <d2p1:ExpenseProfileId>8b055b31-a219-45a3-8b02-6f2b4907110a</d2p1:ExpenseProfileId> <d2p1:IndemnityProfileId>1314df24-de0b-4cbf-9470-dcc4136b04f6</d2p1:IndemnityProfileId> <d2p1:MonthContract>1</d2p1:MonthContract> <d2p1:ReleaseDate>2025-08-16T17:15:57.2613677+00:00</d2p1:ReleaseDate> <d2p1:RuptureMotif>LicenciementLiquidation</d2p1:RuptureMotif> <d2p1:ThresholdTimeSupMonth>3</d2p1:ThresholdTimeSupMonth> <d2p1:ThresholdTimeSupWeek>2</d2p1:ThresholdTimeSupWeek> <d2p1:Id>1</d2p1:Id> </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> </GenResponseDtoOfDriverContractDefinitionDtot4T_So3Vz>