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": "059f7494-d289-44f7-80f6-3daafbb76317", "MonthContract": 1.0, "ThresholdTimeSupWeek": 2.0, "ThresholdTimeSupMonth": 3.0, "ContractType": 0, "EntryDate": "2025-08-18T17:47:05.4978619+00:00", "ReleaseDate": "2025-08-18T17:47:05.4978619+00:00", "DrivingType": 0, "AbsenseProfileId": "094ba30e-87e0-45bc-b294-962c2e105055", "ExpenseProfileId": "742243e7-f160-4795-96fd-735ab26ba9f8", "IndemnityProfileId": "766d2aa3-71d0-47cf-b361-090889ca2cbc", "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>094ba30e-87e0-45bc-b294-962c2e105055</AbsenseProfileId> <ContractType>CDI</ContractType> <DriverId>059f7494-d289-44f7-80f6-3daafbb76317</DriverId> <DrivingType>LongDistance</DrivingType> <EntryDate>2025-08-18T17:47:05.4978619+00:00</EntryDate> <ExpenseProfileId>742243e7-f160-4795-96fd-735ab26ba9f8</ExpenseProfileId> <IndemnityProfileId>766d2aa3-71d0-47cf-b361-090889ca2cbc</IndemnityProfileId> <MonthContract>1</MonthContract> <ReleaseDate>2025-08-18T17:47:05.4978619+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": "e7f70bfe-9ef4-4360-a112-cd9423c71dd1", "MonthContract": 1.0, "ThresholdTimeSupWeek": 2.0, "ThresholdTimeSupMonth": 3.0, "ContractType": 0, "EntryDate": "2025-08-18T17:47:05.4978619+00:00", "ReleaseDate": "2025-08-18T17:47:05.4978619+00:00", "DrivingType": 0, "AbsenseProfileId": "076f929e-4c5f-43ba-a21f-816caa136598", "ExpenseProfileId": "5548d0a4-8251-454f-b383-aa2a1f72702f", "IndemnityProfileId": "04a8727d-c288-420d-9ded-dff28c791a26", "RuptureMotif": 11 }, "CmdId": "7c96e257-7955-469a-98f6-eb35aef87070" }
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>7c96e257-7955-469a-98f6-eb35aef87070</CmdId> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts"> <d2p1:AbsenseProfileId>076f929e-4c5f-43ba-a21f-816caa136598</d2p1:AbsenseProfileId> <d2p1:ContractType>CDI</d2p1:ContractType> <d2p1:DriverId>e7f70bfe-9ef4-4360-a112-cd9423c71dd1</d2p1:DriverId> <d2p1:DrivingType>LongDistance</d2p1:DrivingType> <d2p1:EntryDate>2025-08-18T17:47:05.4978619+00:00</d2p1:EntryDate> <d2p1:ExpenseProfileId>5548d0a4-8251-454f-b383-aa2a1f72702f</d2p1:ExpenseProfileId> <d2p1:IndemnityProfileId>04a8727d-c288-420d-9ded-dff28c791a26</d2p1:IndemnityProfileId> <d2p1:MonthContract>1</d2p1:MonthContract> <d2p1:ReleaseDate>2025-08-18T17:47:05.4978619+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>