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 | 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": "f4434225-d5f3-4ef1-ab16-266d37606e34",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-10-20T16:05:15.7354651+00:00",
"ReleaseDate": "2026-10-20T16:05:15.7354651+00:00",
"DrivingType": 0,
"AbsenseProfileId": "317ae55d-44e5-4c30-b53c-e00a3e570bb1",
"ExpenseProfileId": "67269ce8-357b-430d-9dbf-1accf80e75f2",
"IndemnityProfileId": "2e7da751-ecc3-46f3-b76d-8836e89514b3",
"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>317ae55d-44e5-4c30-b53c-e00a3e570bb1</AbsenseProfileId> <ContractType>CDI</ContractType> <DriverId>f4434225-d5f3-4ef1-ab16-266d37606e34</DriverId> <DrivingType>LongDistance</DrivingType> <EntryDate>2026-10-20T16:05:15.7354651+00:00</EntryDate> <ExpenseProfileId>67269ce8-357b-430d-9dbf-1accf80e75f2</ExpenseProfileId> <IndemnityProfileId>2e7da751-ecc3-46f3-b76d-8836e89514b3</IndemnityProfileId> <MonthContract>1</MonthContract> <ReleaseDate>2026-10-20T16:05:15.7354651+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": "a490d7b8-7f70-4c88-a3dc-e7912118b9cb",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-10-20T16:05:15.7510848+00:00",
"ReleaseDate": "2026-10-20T16:05:15.7510848+00:00",
"DrivingType": 0,
"AbsenseProfileId": "902b3573-0714-4193-a75b-467d4385b6a3",
"ExpenseProfileId": "e396cc66-37c4-4b22-9eea-6ebe1c39869e",
"IndemnityProfileId": "183f1e81-169f-4d03-b527-524c392a0023",
"RuptureMotif": 11
},
"CmdId": "c32ee012-8141-418e-9b5b-2620bd5e4cd6"
}
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>c32ee012-8141-418e-9b5b-2620bd5e4cd6</CmdId>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts">
<d2p1:AbsenseProfileId>902b3573-0714-4193-a75b-467d4385b6a3</d2p1:AbsenseProfileId>
<d2p1:ContractType>CDI</d2p1:ContractType>
<d2p1:DriverId>a490d7b8-7f70-4c88-a3dc-e7912118b9cb</d2p1:DriverId>
<d2p1:DrivingType>LongDistance</d2p1:DrivingType>
<d2p1:EntryDate>2026-10-20T16:05:15.7510848+00:00</d2p1:EntryDate>
<d2p1:ExpenseProfileId>e396cc66-37c4-4b22-9eea-6ebe1c39869e</d2p1:ExpenseProfileId>
<d2p1:IndemnityProfileId>183f1e81-169f-4d03-b527-524c392a0023</d2p1:IndemnityProfileId>
<d2p1:MonthContract>1</d2p1:MonthContract>
<d2p1:ReleaseDate>2026-10-20T16:05:15.7510848+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>