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": "f8f55dd3-7f16-44cb-8f8f-fcbff3cb35dc",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-01-19T19:06:30.1710318+00:00",
"ReleaseDate": "2026-01-19T19:06:30.1710318+00:00",
"DrivingType": 0,
"AbsenseProfileId": "1e526b5f-2411-4704-8a79-41dea499f17b",
"ExpenseProfileId": "e8fdeef5-73ac-4470-8db3-eade8ad99c92",
"IndemnityProfileId": "fe10a415-103b-4e12-95ea-f61e8a7f6301",
"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>1e526b5f-2411-4704-8a79-41dea499f17b</AbsenseProfileId> <ContractType>CDI</ContractType> <DriverId>f8f55dd3-7f16-44cb-8f8f-fcbff3cb35dc</DriverId> <DrivingType>LongDistance</DrivingType> <EntryDate>2026-01-19T19:06:30.1710318+00:00</EntryDate> <ExpenseProfileId>e8fdeef5-73ac-4470-8db3-eade8ad99c92</ExpenseProfileId> <IndemnityProfileId>fe10a415-103b-4e12-95ea-f61e8a7f6301</IndemnityProfileId> <MonthContract>1</MonthContract> <ReleaseDate>2026-01-19T19:06:30.1710318+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": "e1d0aa7f-9c36-48af-b23a-e54080fa3ba7",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-01-19T19:06:30.1710318+00:00",
"ReleaseDate": "2026-01-19T19:06:30.1710318+00:00",
"DrivingType": 0,
"AbsenseProfileId": "3fa67c3e-086f-4953-bc71-f1cc96fcbaa9",
"ExpenseProfileId": "e9927380-0b88-46c2-832b-1e453f7511a7",
"IndemnityProfileId": "4da019a0-6f2f-41e1-a440-0b3bb37c172e",
"RuptureMotif": 11
},
"CmdId": "42e787e4-cc73-4313-8c26-1f8d74c3617c"
}
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>42e787e4-cc73-4313-8c26-1f8d74c3617c</CmdId>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts">
<d2p1:AbsenseProfileId>3fa67c3e-086f-4953-bc71-f1cc96fcbaa9</d2p1:AbsenseProfileId>
<d2p1:ContractType>CDI</d2p1:ContractType>
<d2p1:DriverId>e1d0aa7f-9c36-48af-b23a-e54080fa3ba7</d2p1:DriverId>
<d2p1:DrivingType>LongDistance</d2p1:DrivingType>
<d2p1:EntryDate>2026-01-19T19:06:30.1710318+00:00</d2p1:EntryDate>
<d2p1:ExpenseProfileId>e9927380-0b88-46c2-832b-1e453f7511a7</d2p1:ExpenseProfileId>
<d2p1:IndemnityProfileId>4da019a0-6f2f-41e1-a440-0b3bb37c172e</d2p1:IndemnityProfileId>
<d2p1:MonthContract>1</d2p1:MonthContract>
<d2p1:ReleaseDate>2026-01-19T19:06:30.1710318+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>