POST api/v2/driver/{driverId}/contract
Ajoute un contrat
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": "aba63a2b-3c7f-472b-96d6-7dea8ee8c10b",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-04-20T07:29:35.7389133+00:00",
"ReleaseDate": "2026-04-20T07:29:35.7389133+00:00",
"DrivingType": 0,
"AbsenseProfileId": "8b220796-8e23-4647-a8cd-a67acc19acb3",
"ExpenseProfileId": "a24d76c3-7bc7-481e-ba6e-98709da907d0",
"IndemnityProfileId": "eb11171c-b520-468e-ba0f-90977cb8945e",
"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>8b220796-8e23-4647-a8cd-a67acc19acb3</AbsenseProfileId> <ContractType>CDI</ContractType> <DriverId>aba63a2b-3c7f-472b-96d6-7dea8ee8c10b</DriverId> <DrivingType>LongDistance</DrivingType> <EntryDate>2026-04-20T07:29:35.7389133+00:00</EntryDate> <ExpenseProfileId>a24d76c3-7bc7-481e-ba6e-98709da907d0</ExpenseProfileId> <IndemnityProfileId>eb11171c-b520-468e-ba0f-90977cb8945e</IndemnityProfileId> <MonthContract>1</MonthContract> <ReleaseDate>2026-04-20T07:29:35.7389133+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": "06166ad6-d0c9-4e7f-b633-6cb79d3c7388",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-04-20T07:29:35.7389133+00:00",
"ReleaseDate": "2026-04-20T07:29:35.7389133+00:00",
"DrivingType": 0,
"AbsenseProfileId": "29b1a28b-2660-4381-bace-fc498f32e459",
"ExpenseProfileId": "2c05b6e3-adfc-4863-984a-207b7c838643",
"IndemnityProfileId": "f5dab0b5-ae99-4e4e-b31c-5c1f6ca9ecd1",
"RuptureMotif": 11
},
"CmdId": "f868ab2c-82d9-4faf-8865-dd54203c1c14"
}
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>f868ab2c-82d9-4faf-8865-dd54203c1c14</CmdId>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts">
<d2p1:AbsenseProfileId>29b1a28b-2660-4381-bace-fc498f32e459</d2p1:AbsenseProfileId>
<d2p1:ContractType>CDI</d2p1:ContractType>
<d2p1:DriverId>06166ad6-d0c9-4e7f-b633-6cb79d3c7388</d2p1:DriverId>
<d2p1:DrivingType>LongDistance</d2p1:DrivingType>
<d2p1:EntryDate>2026-04-20T07:29:35.7389133+00:00</d2p1:EntryDate>
<d2p1:ExpenseProfileId>2c05b6e3-adfc-4863-984a-207b7c838643</d2p1:ExpenseProfileId>
<d2p1:IndemnityProfileId>f5dab0b5-ae99-4e4e-b31c-5c1f6ca9ecd1</d2p1:IndemnityProfileId>
<d2p1:MonthContract>1</d2p1:MonthContract>
<d2p1:ReleaseDate>2026-04-20T07:29:35.7389133+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>