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
DriverContractDefinitionDtoName | 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": "b394e087-cc5b-4305-bc0e-c6fdf45b9bef", "MonthContract": 1.0, "ThresholdTimeSupWeek": 2.0, "ThresholdTimeSupMonth": 3.0, "ContractType": 0, "EntryDate": "2025-10-13T22:53:08.1562746+00:00", "ReleaseDate": "2025-10-13T22:53:08.1562746+00:00", "DrivingType": 0, "AbsenseProfileId": "6fd11e6f-c306-4b01-ac36-5f77656dfe78", "ExpenseProfileId": "97206f70-b893-406d-ae5a-ad5dbd28c5d7", "IndemnityProfileId": "8fa22b75-d09e-48a7-a33b-174e26c80183", "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>6fd11e6f-c306-4b01-ac36-5f77656dfe78</AbsenseProfileId> <ContractType>CDI</ContractType> <DriverId>b394e087-cc5b-4305-bc0e-c6fdf45b9bef</DriverId> <DrivingType>LongDistance</DrivingType> <EntryDate>2025-10-13T22:53:08.1562746+00:00</EntryDate> <ExpenseProfileId>97206f70-b893-406d-ae5a-ad5dbd28c5d7</ExpenseProfileId> <IndemnityProfileId>8fa22b75-d09e-48a7-a33b-174e26c80183</IndemnityProfileId> <MonthContract>1</MonthContract> <ReleaseDate>2025-10-13T22:53:08.1562746+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
GenResponseDtoOfDriverContractDefinitionDtoName | 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": "ccb6de95-809d-4dd1-9280-9f8014a8b12e", "MonthContract": 1.0, "ThresholdTimeSupWeek": 2.0, "ThresholdTimeSupMonth": 3.0, "ContractType": 0, "EntryDate": "2025-10-13T22:53:08.1562746+00:00", "ReleaseDate": "2025-10-13T22:53:08.1562746+00:00", "DrivingType": 0, "AbsenseProfileId": "0db854ef-8ec2-498c-ba65-a07f93d6aae2", "ExpenseProfileId": "1faa94da-4888-41c1-8428-f7bb4c4ea7d8", "IndemnityProfileId": "a430825d-5ad0-4bd9-af74-37e50a26a506", "RuptureMotif": 11 }, "CmdId": "27457717-bf28-4a83-b884-3f9d5d5b514a" }
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>27457717-bf28-4a83-b884-3f9d5d5b514a</CmdId> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts"> <d2p1:AbsenseProfileId>0db854ef-8ec2-498c-ba65-a07f93d6aae2</d2p1:AbsenseProfileId> <d2p1:ContractType>CDI</d2p1:ContractType> <d2p1:DriverId>ccb6de95-809d-4dd1-9280-9f8014a8b12e</d2p1:DriverId> <d2p1:DrivingType>LongDistance</d2p1:DrivingType> <d2p1:EntryDate>2025-10-13T22:53:08.1562746+00:00</d2p1:EntryDate> <d2p1:ExpenseProfileId>1faa94da-4888-41c1-8428-f7bb4c4ea7d8</d2p1:ExpenseProfileId> <d2p1:IndemnityProfileId>a430825d-5ad0-4bd9-af74-37e50a26a506</d2p1:IndemnityProfileId> <d2p1:MonthContract>1</d2p1:MonthContract> <d2p1:ReleaseDate>2025-10-13T22:53:08.1562746+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>