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": "42d3946c-fd67-4a64-a501-7f4c6fa3d404",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-07-21T13:06:00.9183506+00:00",
"ReleaseDate": "2026-07-21T13:06:00.9183506+00:00",
"DrivingType": 0,
"AbsenseProfileId": "3dd6116e-4cfd-4726-a419-f273c2ac16e8",
"ExpenseProfileId": "a0e195b0-0f94-4f67-9286-8b904f019f00",
"IndemnityProfileId": "4e084101-55ad-4137-9afc-78ff16f2beed",
"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>3dd6116e-4cfd-4726-a419-f273c2ac16e8</AbsenseProfileId> <ContractType>CDI</ContractType> <DriverId>42d3946c-fd67-4a64-a501-7f4c6fa3d404</DriverId> <DrivingType>LongDistance</DrivingType> <EntryDate>2026-07-21T13:06:00.9183506+00:00</EntryDate> <ExpenseProfileId>a0e195b0-0f94-4f67-9286-8b904f019f00</ExpenseProfileId> <IndemnityProfileId>4e084101-55ad-4137-9afc-78ff16f2beed</IndemnityProfileId> <MonthContract>1</MonthContract> <ReleaseDate>2026-07-21T13:06:00.9183506+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": "5ba2f757-3670-45a5-8fe9-43d2a75a7dc2",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-07-21T13:06:00.9183506+00:00",
"ReleaseDate": "2026-07-21T13:06:00.9183506+00:00",
"DrivingType": 0,
"AbsenseProfileId": "37d924ec-d7ed-4070-b6db-d5e2cd26c791",
"ExpenseProfileId": "dd5b594f-8207-47dc-ba92-4c67fcdfe3b4",
"IndemnityProfileId": "a0e3fb09-bc69-4ea3-8ab3-ec4822343f73",
"RuptureMotif": 11
},
"CmdId": "c8cd0e08-dd41-4384-acdf-480fe82b2bdc"
}
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>c8cd0e08-dd41-4384-acdf-480fe82b2bdc</CmdId>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts">
<d2p1:AbsenseProfileId>37d924ec-d7ed-4070-b6db-d5e2cd26c791</d2p1:AbsenseProfileId>
<d2p1:ContractType>CDI</d2p1:ContractType>
<d2p1:DriverId>5ba2f757-3670-45a5-8fe9-43d2a75a7dc2</d2p1:DriverId>
<d2p1:DrivingType>LongDistance</d2p1:DrivingType>
<d2p1:EntryDate>2026-07-21T13:06:00.9183506+00:00</d2p1:EntryDate>
<d2p1:ExpenseProfileId>dd5b594f-8207-47dc-ba92-4c67fcdfe3b4</d2p1:ExpenseProfileId>
<d2p1:IndemnityProfileId>a0e3fb09-bc69-4ea3-8ab3-ec4822343f73</d2p1:IndemnityProfileId>
<d2p1:MonthContract>1</d2p1:MonthContract>
<d2p1:ReleaseDate>2026-07-21T13:06:00.9183506+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>