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": "112c09e2-b7f0-4f40-ab2b-12818ff3efe3",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-12-05T01:34:20.7061714+00:00",
"ReleaseDate": "2026-12-05T01:34:20.7061714+00:00",
"DrivingType": 0,
"AbsenseProfileId": "be4a8212-7956-49b6-b0f6-7e802f229ae2",
"ExpenseProfileId": "ac0cb893-a1fb-4bee-873b-d8dd796966e5",
"IndemnityProfileId": "1a1f336a-d36f-441d-8037-8a1be6fed88d",
"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>be4a8212-7956-49b6-b0f6-7e802f229ae2</AbsenseProfileId> <ContractType>CDI</ContractType> <DriverId>112c09e2-b7f0-4f40-ab2b-12818ff3efe3</DriverId> <DrivingType>LongDistance</DrivingType> <EntryDate>2026-12-05T01:34:20.7061714+00:00</EntryDate> <ExpenseProfileId>ac0cb893-a1fb-4bee-873b-d8dd796966e5</ExpenseProfileId> <IndemnityProfileId>1a1f336a-d36f-441d-8037-8a1be6fed88d</IndemnityProfileId> <MonthContract>1</MonthContract> <ReleaseDate>2026-12-05T01:34:20.7061714+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": "a3327061-602e-4acf-a96e-19d1b00d0cf6",
"MonthContract": 1.0,
"ThresholdTimeSupWeek": 2.0,
"ThresholdTimeSupMonth": 3.0,
"ContractType": 0,
"EntryDate": "2026-12-05T01:34:20.7218895+00:00",
"ReleaseDate": "2026-12-05T01:34:20.7218895+00:00",
"DrivingType": 0,
"AbsenseProfileId": "26aae6b3-6c13-4258-accd-3e3c1aa1d65e",
"ExpenseProfileId": "943fc4cd-bd0a-498d-9735-c0f722bf9df1",
"IndemnityProfileId": "9270cfb3-fc86-4b6f-b1b3-8eb6e2f2db68",
"RuptureMotif": 11
},
"CmdId": "d1dfe69f-0ef2-4dc0-84ff-024a7237d7f8"
}
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>d1dfe69f-0ef2-4dc0-84ff-024a7237d7f8</CmdId>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts">
<d2p1:AbsenseProfileId>26aae6b3-6c13-4258-accd-3e3c1aa1d65e</d2p1:AbsenseProfileId>
<d2p1:ContractType>CDI</d2p1:ContractType>
<d2p1:DriverId>a3327061-602e-4acf-a96e-19d1b00d0cf6</d2p1:DriverId>
<d2p1:DrivingType>LongDistance</d2p1:DrivingType>
<d2p1:EntryDate>2026-12-05T01:34:20.7218895+00:00</d2p1:EntryDate>
<d2p1:ExpenseProfileId>943fc4cd-bd0a-498d-9735-c0f722bf9df1</d2p1:ExpenseProfileId>
<d2p1:IndemnityProfileId>9270cfb3-fc86-4b6f-b1b3-8eb6e2f2db68</d2p1:IndemnityProfileId>
<d2p1:MonthContract>1</d2p1:MonthContract>
<d2p1:ReleaseDate>2026-12-05T01:34:20.7218895+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>