PUT api/v2/driver/{driverId}/contract
Met à jour un contract
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": "b86bd801-7e0d-41e4-a725-13d79d678238", "MonthContract": 1.0, "ThresholdTimeSupWeek": 2.0, "ThresholdTimeSupMonth": 3.0, "ContractType": 0, "EntryDate": "2025-07-01T14:48:59.9866517+00:00", "ReleaseDate": "2025-07-01T14:48:59.9866517+00:00", "DrivingType": 0, "AbsenseProfileId": "cd50965e-46d1-4364-b6a0-cc8d3aa5356b", "ExpenseProfileId": "1e065c6e-3e37-45ba-aa61-e72a4dd9776c", "IndemnityProfileId": "252f88fd-64bd-4af0-9b47-3a7664948ddf", "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>cd50965e-46d1-4364-b6a0-cc8d3aa5356b</AbsenseProfileId> <ContractType>CDI</ContractType> <DriverId>b86bd801-7e0d-41e4-a725-13d79d678238</DriverId> <DrivingType>LongDistance</DrivingType> <EntryDate>2025-07-01T14:48:59.9866517+00:00</EntryDate> <ExpenseProfileId>1e065c6e-3e37-45ba-aa61-e72a4dd9776c</ExpenseProfileId> <IndemnityProfileId>252f88fd-64bd-4af0-9b47-3a7664948ddf</IndemnityProfileId> <MonthContract>1</MonthContract> <ReleaseDate>2025-07-01T14:48:59.9866517+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": "7a7af716-155e-469d-a5f1-912afa746e37", "MonthContract": 1.0, "ThresholdTimeSupWeek": 2.0, "ThresholdTimeSupMonth": 3.0, "ContractType": 0, "EntryDate": "2025-07-01T14:48:59.9866517+00:00", "ReleaseDate": "2025-07-01T14:48:59.9866517+00:00", "DrivingType": 0, "AbsenseProfileId": "46fecf45-b4b7-4290-b622-6c935bf5201f", "ExpenseProfileId": "48dbaf59-35c7-4a95-bfda-52d823877387", "IndemnityProfileId": "d59aef77-b19a-4c13-a2ea-ce3277928f33", "RuptureMotif": 11 }, "CmdId": "5258cf63-a4df-47b6-bc64-35312c1512ce" }
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>5258cf63-a4df-47b6-bc64-35312c1512ce</CmdId> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contracts"> <d2p1:AbsenseProfileId>46fecf45-b4b7-4290-b622-6c935bf5201f</d2p1:AbsenseProfileId> <d2p1:ContractType>CDI</d2p1:ContractType> <d2p1:DriverId>7a7af716-155e-469d-a5f1-912afa746e37</d2p1:DriverId> <d2p1:DrivingType>LongDistance</d2p1:DrivingType> <d2p1:EntryDate>2025-07-01T14:48:59.9866517+00:00</d2p1:EntryDate> <d2p1:ExpenseProfileId>48dbaf59-35c7-4a95-bfda-52d823877387</d2p1:ExpenseProfileId> <d2p1:IndemnityProfileId>d59aef77-b19a-4c13-a2ea-ce3277928f33</d2p1:IndemnityProfileId> <d2p1:MonthContract>1</d2p1:MonthContract> <d2p1:ReleaseDate>2025-07-01T14:48:59.9866517+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>