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 | decimal number |
None. |
|
| ThresholdTimeSupWeek | decimal number |
None. |
|
| ThresholdTimeSupMonth | decimal number |
None. |
|
| ContractType | ContractTypeDto |
None. |
|
| EntryDate | date |
None. |
|
| ReleaseDate | date |
None. |
|
| DrivingType | 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": "3bb78fe0-bde6-4241-9bed-0a84410dc9ac",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-10-20T16:05:16.6573483+00:00",
"ReleaseDate": "2026-10-20T16:05:16.6573483+00:00",
"DrivingType": 0,
"AbsenseProfileId": "8dab022f-9c49-4a9f-9daa-cc5a129e1355",
"ExpenseProfileId": "edc88efa-998c-4c1e-bed1-b16a9ab5f940",
"IndemnityProfileId": "0bde0059-2f15-4876-a4eb-914f3a6da558",
"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>8dab022f-9c49-4a9f-9daa-cc5a129e1355</AbsenseProfileId> <ContractType>CDI</ContractType> <DriverId>3bb78fe0-bde6-4241-9bed-0a84410dc9ac</DriverId> <DrivingType>LongDistance</DrivingType> <EntryDate>2026-10-20T16:05:16.6573483+00:00</EntryDate> <ExpenseProfileId>edc88efa-998c-4c1e-bed1-b16a9ab5f940</ExpenseProfileId> <IndemnityProfileId>0bde0059-2f15-4876-a4eb-914f3a6da558</IndemnityProfileId> <MonthContract>1</MonthContract> <ReleaseDate>2026-10-20T16:05:16.6573483+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": "c7fb6525-8be2-4e24-9e4f-96ae57840378",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-10-20T16:05:16.6573483+00:00",
"ReleaseDate": "2026-10-20T16:05:16.6573483+00:00",
"DrivingType": 0,
"AbsenseProfileId": "6a512085-ec42-4a44-b6b8-72f2329381cf",
"ExpenseProfileId": "58d39d56-3dec-4c4a-9697-8770c3e89771",
"IndemnityProfileId": "ae13b936-57b4-4103-a8a9-88f21808a132",
"RuptureMotif": 11
},
"CmdId": "ba40ab72-aa53-4247-85f9-89cccea1df76"
}
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>ba40ab72-aa53-4247-85f9-89cccea1df76</CmdId>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts">
<d2p1:AbsenseProfileId>6a512085-ec42-4a44-b6b8-72f2329381cf</d2p1:AbsenseProfileId>
<d2p1:ContractType>CDI</d2p1:ContractType>
<d2p1:DriverId>c7fb6525-8be2-4e24-9e4f-96ae57840378</d2p1:DriverId>
<d2p1:DrivingType>LongDistance</d2p1:DrivingType>
<d2p1:EntryDate>2026-10-20T16:05:16.6573483+00:00</d2p1:EntryDate>
<d2p1:ExpenseProfileId>58d39d56-3dec-4c4a-9697-8770c3e89771</d2p1:ExpenseProfileId>
<d2p1:IndemnityProfileId>ae13b936-57b4-4103-a8a9-88f21808a132</d2p1:IndemnityProfileId>
<d2p1:MonthContract>1</d2p1:MonthContract>
<d2p1:ReleaseDate>2026-10-20T16:05:16.6573483+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>