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": "37815b92-452b-43cb-8032-6c1b67087b99",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-07-21T13:06:00.0902187+00:00",
"ReleaseDate": "2026-07-21T13:06:00.0902187+00:00",
"DrivingType": 0,
"AbsenseProfileId": "7aebe671-9381-4c76-af47-4e6dc0d95742",
"ExpenseProfileId": "c36a7b8b-efd0-4d3a-8d80-a775db03561c",
"IndemnityProfileId": "2b612ce8-24e1-47b0-a6a1-9bebf5e4e39d",
"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>7aebe671-9381-4c76-af47-4e6dc0d95742</AbsenseProfileId> <ContractType>CDI</ContractType> <DriverId>37815b92-452b-43cb-8032-6c1b67087b99</DriverId> <DrivingType>LongDistance</DrivingType> <EntryDate>2026-07-21T13:06:00.0902187+00:00</EntryDate> <ExpenseProfileId>c36a7b8b-efd0-4d3a-8d80-a775db03561c</ExpenseProfileId> <IndemnityProfileId>2b612ce8-24e1-47b0-a6a1-9bebf5e4e39d</IndemnityProfileId> <MonthContract>1</MonthContract> <ReleaseDate>2026-07-21T13:06:00.0902187+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": "f6909f9a-829f-4d06-a1a1-33a600b60b22",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-07-21T13:06:00.1058431+00:00",
"ReleaseDate": "2026-07-21T13:06:00.1058431+00:00",
"DrivingType": 0,
"AbsenseProfileId": "467a72c7-8dcc-44f8-870c-07e46ea58551",
"ExpenseProfileId": "2888939d-4412-46a8-9754-7ead605080d3",
"IndemnityProfileId": "c8419f98-a9a6-4d27-9333-0be1416af50e",
"RuptureMotif": 11
},
"CmdId": "0ad831ea-8712-4d4d-a224-ee1151d1fd5c"
}
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>0ad831ea-8712-4d4d-a224-ee1151d1fd5c</CmdId>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts">
<d2p1:AbsenseProfileId>467a72c7-8dcc-44f8-870c-07e46ea58551</d2p1:AbsenseProfileId>
<d2p1:ContractType>CDI</d2p1:ContractType>
<d2p1:DriverId>f6909f9a-829f-4d06-a1a1-33a600b60b22</d2p1:DriverId>
<d2p1:DrivingType>LongDistance</d2p1:DrivingType>
<d2p1:EntryDate>2026-07-21T13:06:00.1058431+00:00</d2p1:EntryDate>
<d2p1:ExpenseProfileId>2888939d-4412-46a8-9754-7ead605080d3</d2p1:ExpenseProfileId>
<d2p1:IndemnityProfileId>c8419f98-a9a6-4d27-9333-0be1416af50e</d2p1:IndemnityProfileId>
<d2p1:MonthContract>1</d2p1:MonthContract>
<d2p1:ReleaseDate>2026-07-21T13:06:00.1058431+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>