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
DriverContractDefinitionDto| Name | 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": "b314457a-6ce0-48eb-9c0e-4d2f6946cbef",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-06-05T02:03:44.9088446+00:00",
"ReleaseDate": "2026-06-05T02:03:44.9088446+00:00",
"DrivingType": 0,
"AbsenseProfileId": "59adcb84-bf92-4046-98de-c762d9fd592d",
"ExpenseProfileId": "589e2462-6d25-4ecf-b6d0-3e793dec1d8a",
"IndemnityProfileId": "3d946e6f-1c5d-4472-94d2-0847d0891f85",
"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>59adcb84-bf92-4046-98de-c762d9fd592d</AbsenseProfileId> <ContractType>CDI</ContractType> <DriverId>b314457a-6ce0-48eb-9c0e-4d2f6946cbef</DriverId> <DrivingType>LongDistance</DrivingType> <EntryDate>2026-06-05T02:03:44.9088446+00:00</EntryDate> <ExpenseProfileId>589e2462-6d25-4ecf-b6d0-3e793dec1d8a</ExpenseProfileId> <IndemnityProfileId>3d946e6f-1c5d-4472-94d2-0847d0891f85</IndemnityProfileId> <MonthContract>1</MonthContract> <ReleaseDate>2026-06-05T02:03:44.9088446+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
GenResponseDtoOfDriverContractDefinitionDto| Name | 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": "1f3d0d77-0972-46cf-a6e3-88b936628494",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-06-05T02:03:44.9088446+00:00",
"ReleaseDate": "2026-06-05T02:03:44.9088446+00:00",
"DrivingType": 0,
"AbsenseProfileId": "b2841c8a-c1f6-4621-80c1-13613f7440f6",
"ExpenseProfileId": "000834b8-bce9-4bc1-bf6d-d98b8afbf26a",
"IndemnityProfileId": "ad5f4b6e-a67f-4878-bb4c-ceda2e452013",
"RuptureMotif": 11
},
"CmdId": "d3605c30-f69f-4789-921c-5cac03263317"
}
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>d3605c30-f69f-4789-921c-5cac03263317</CmdId>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts">
<d2p1:AbsenseProfileId>b2841c8a-c1f6-4621-80c1-13613f7440f6</d2p1:AbsenseProfileId>
<d2p1:ContractType>CDI</d2p1:ContractType>
<d2p1:DriverId>1f3d0d77-0972-46cf-a6e3-88b936628494</d2p1:DriverId>
<d2p1:DrivingType>LongDistance</d2p1:DrivingType>
<d2p1:EntryDate>2026-06-05T02:03:44.9088446+00:00</d2p1:EntryDate>
<d2p1:ExpenseProfileId>000834b8-bce9-4bc1-bf6d-d98b8afbf26a</d2p1:ExpenseProfileId>
<d2p1:IndemnityProfileId>ad5f4b6e-a67f-4878-bb4c-ceda2e452013</d2p1:IndemnityProfileId>
<d2p1:MonthContract>1</d2p1:MonthContract>
<d2p1:ReleaseDate>2026-06-05T02:03:44.9088446+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>