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": "a0bb137b-da60-4f0d-a6de-9b01cc4f9038",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-12-05T01:34:21.3631114+00:00",
"ReleaseDate": "2026-12-05T01:34:21.3631114+00:00",
"DrivingType": 0,
"AbsenseProfileId": "6e4aa858-fc33-4954-8523-aba94fea614b",
"ExpenseProfileId": "dc885c72-bca6-40ff-8ea9-7ef5a29dbb04",
"IndemnityProfileId": "7637bdb0-c272-4121-8af6-f196e9595d2d",
"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>6e4aa858-fc33-4954-8523-aba94fea614b</AbsenseProfileId> <ContractType>CDI</ContractType> <DriverId>a0bb137b-da60-4f0d-a6de-9b01cc4f9038</DriverId> <DrivingType>LongDistance</DrivingType> <EntryDate>2026-12-05T01:34:21.3631114+00:00</EntryDate> <ExpenseProfileId>dc885c72-bca6-40ff-8ea9-7ef5a29dbb04</ExpenseProfileId> <IndemnityProfileId>7637bdb0-c272-4121-8af6-f196e9595d2d</IndemnityProfileId> <MonthContract>1</MonthContract> <ReleaseDate>2026-12-05T01:34:21.3631114+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": "bce493af-3348-49ba-a710-b795e8725ff5",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-12-05T01:34:21.3631114+00:00",
"ReleaseDate": "2026-12-05T01:34:21.3631114+00:00",
"DrivingType": 0,
"AbsenseProfileId": "bcae52f2-c38b-4f19-9856-2187798652a5",
"ExpenseProfileId": "43d9f469-6246-4d04-8e66-5fc114007528",
"IndemnityProfileId": "db1d83e9-bdc6-4140-b0eb-47f6f31b0eeb",
"RuptureMotif": 11
},
"CmdId": "bfa6fbc3-500b-4ee3-a9fb-2352b57d8ba5"
}
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>bfa6fbc3-500b-4ee3-a9fb-2352b57d8ba5</CmdId>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts">
<d2p1:AbsenseProfileId>bcae52f2-c38b-4f19-9856-2187798652a5</d2p1:AbsenseProfileId>
<d2p1:ContractType>CDI</d2p1:ContractType>
<d2p1:DriverId>bce493af-3348-49ba-a710-b795e8725ff5</d2p1:DriverId>
<d2p1:DrivingType>LongDistance</d2p1:DrivingType>
<d2p1:EntryDate>2026-12-05T01:34:21.3631114+00:00</d2p1:EntryDate>
<d2p1:ExpenseProfileId>43d9f469-6246-4d04-8e66-5fc114007528</d2p1:ExpenseProfileId>
<d2p1:IndemnityProfileId>db1d83e9-bdc6-4140-b0eb-47f6f31b0eeb</d2p1:IndemnityProfileId>
<d2p1:MonthContract>1</d2p1:MonthContract>
<d2p1:ReleaseDate>2026-12-05T01:34:21.3631114+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>