PUT api/v2/socialdata/absence/profil
Met à jour un profile
Request Information
URI Parameters
None.
Body Parameters
AbsenceProfileDefinitionDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
identifiant |
globally unique identifier |
None. |
| Absences |
Absences |
Collection of AbsenceDefinitionDto |
None. |
| CustomerId |
identifiant du client |
globally unique identifier |
None. |
| Name |
Nom |
string |
None. |
| Description |
Description |
string |
None. |
| IsEditable |
indique si il est éditable |
boolean |
None. |
| NbMonthlyHours | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "31a23cd2-6405-4003-b883-6bbb552811cc",
"Absences": [
{
"Id": "4edb2c4d-43cb-41ed-b105-eae93da73d72",
"ProfilId": "48ef32dc-41c5-414a-8b66-83c7dbe905df",
"Name": "sample string 2",
"DayTime": 3,
"HalfDayTime": 4,
"Payd": true,
"ExtraHour": true,
"Quota": true,
"CR": true,
"NightCR": true,
"Order": 10,
"Color": "sample string 11",
"EditableHour": true,
"AnalyticId": "3645fe70-2b0d-4c16-b018-d2600a86e1bb",
"AnalyticCode": "sample string 13",
"IsLinkedToAnyDriver": true
},
{
"Id": "4edb2c4d-43cb-41ed-b105-eae93da73d72",
"ProfilId": "48ef32dc-41c5-414a-8b66-83c7dbe905df",
"Name": "sample string 2",
"DayTime": 3,
"HalfDayTime": 4,
"Payd": true,
"ExtraHour": true,
"Quota": true,
"CR": true,
"NightCR": true,
"Order": 10,
"Color": "sample string 11",
"EditableHour": true,
"AnalyticId": "3645fe70-2b0d-4c16-b018-d2600a86e1bb",
"AnalyticCode": "sample string 13",
"IsLinkedToAnyDriver": true
}
],
"CustomerId": "0d837400-63ee-4048-a4f4-b373899e4438",
"Name": "sample string 1",
"Description": "sample string 2",
"IsEditable": true,
"NbMonthlyHours": 4
}
application/xml, text/xml
Sample:
<AbsenceProfileDefinitionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Absence">
<CustomerId>0d837400-63ee-4048-a4f4-b373899e4438</CustomerId>
<Description>sample string 2</Description>
<IsEditable>true</IsEditable>
<Name>sample string 1</Name>
<NbMonthlyHours>4</NbMonthlyHours>
<Absences xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contract">
<d2p1:AbsenceDefinitionDto>
<d2p1:AnalyticCode>sample string 13</d2p1:AnalyticCode>
<d2p1:AnalyticId>3645fe70-2b0d-4c16-b018-d2600a86e1bb</d2p1:AnalyticId>
<d2p1:CR>true</d2p1:CR>
<d2p1:Color>sample string 11</d2p1:Color>
<d2p1:DayTime>3</d2p1:DayTime>
<d2p1:EditableHour>true</d2p1:EditableHour>
<d2p1:ExtraHour>true</d2p1:ExtraHour>
<d2p1:HalfDayTime>4</d2p1:HalfDayTime>
<d2p1:IsLinkedToAnyDriver>true</d2p1:IsLinkedToAnyDriver>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:NightCR>true</d2p1:NightCR>
<d2p1:Order>10</d2p1:Order>
<d2p1:Payd>true</d2p1:Payd>
<d2p1:ProfilId>48ef32dc-41c5-414a-8b66-83c7dbe905df</d2p1:ProfilId>
<d2p1:Quota>true</d2p1:Quota>
<d2p1:Id>4edb2c4d-43cb-41ed-b105-eae93da73d72</d2p1:Id>
</d2p1:AbsenceDefinitionDto>
<d2p1:AbsenceDefinitionDto>
<d2p1:AnalyticCode>sample string 13</d2p1:AnalyticCode>
<d2p1:AnalyticId>3645fe70-2b0d-4c16-b018-d2600a86e1bb</d2p1:AnalyticId>
<d2p1:CR>true</d2p1:CR>
<d2p1:Color>sample string 11</d2p1:Color>
<d2p1:DayTime>3</d2p1:DayTime>
<d2p1:EditableHour>true</d2p1:EditableHour>
<d2p1:ExtraHour>true</d2p1:ExtraHour>
<d2p1:HalfDayTime>4</d2p1:HalfDayTime>
<d2p1:IsLinkedToAnyDriver>true</d2p1:IsLinkedToAnyDriver>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:NightCR>true</d2p1:NightCR>
<d2p1:Order>10</d2p1:Order>
<d2p1:Payd>true</d2p1:Payd>
<d2p1:ProfilId>48ef32dc-41c5-414a-8b66-83c7dbe905df</d2p1:ProfilId>
<d2p1:Quota>true</d2p1:Quota>
<d2p1:Id>4edb2c4d-43cb-41ed-b105-eae93da73d72</d2p1:Id>
</d2p1:AbsenceDefinitionDto>
</Absences>
<Id>31a23cd2-6405-4003-b883-6bbb552811cc</Id>
</AbsenceProfileDefinitionDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AbsenceProfileDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
identifiant |
globally unique identifier |
None. |
| Absences |
absences |
Collection of AbsenceDto |
None. |
| CustomerId |
identifiant du client |
globally unique identifier |
None. |
| Name |
Nom |
string |
None. |
| Description |
Description |
string |
None. |
| IsEditable |
indique si il est éditable |
boolean |
None. |
| NbMonthlyHours | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": "3c64beca-2d5c-4f54-8021-f40b11ff0c3c",
"Absences": [
{
"Id": "ab9f2293-0033-4743-9a22-d2ae6165924e",
"ProfilId": "1251f696-8bf7-4547-8a65-d270368e01aa",
"Name": "sample string 3",
"DayTime": 4,
"HalfDayTime": 5,
"Payd": true,
"ExtraHour": true,
"Quota": true,
"CR": true,
"NightCR": true,
"Order": 11,
"Color": "sample string 12",
"EditableHour": true,
"AnalyticId": "94a0f7fd-4217-4709-b634-30538211a8ee",
"AnalyticCode": "sample string 14",
"IsLinkedToAnyDriver": true
},
{
"Id": "ab9f2293-0033-4743-9a22-d2ae6165924e",
"ProfilId": "1251f696-8bf7-4547-8a65-d270368e01aa",
"Name": "sample string 3",
"DayTime": 4,
"HalfDayTime": 5,
"Payd": true,
"ExtraHour": true,
"Quota": true,
"CR": true,
"NightCR": true,
"Order": 11,
"Color": "sample string 12",
"EditableHour": true,
"AnalyticId": "94a0f7fd-4217-4709-b634-30538211a8ee",
"AnalyticCode": "sample string 14",
"IsLinkedToAnyDriver": true
}
],
"CustomerId": "55b7bfd3-e621-4d47-bc03-9b6f67cc211c",
"Name": "sample string 2",
"Description": "sample string 3",
"IsEditable": true,
"NbMonthlyHours": 5
}
application/xml, text/xml
Sample:
<AbsenceProfileDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Absence">
<CustomerId>55b7bfd3-e621-4d47-bc03-9b6f67cc211c</CustomerId>
<Description>sample string 3</Description>
<IsEditable>true</IsEditable>
<Name>sample string 2</Name>
<NbMonthlyHours>5</NbMonthlyHours>
<Absences xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contract">
<d2p1:AbsenceDto>
<d2p1:AnalyticCode>sample string 14</d2p1:AnalyticCode>
<d2p1:AnalyticId>94a0f7fd-4217-4709-b634-30538211a8ee</d2p1:AnalyticId>
<d2p1:CR>true</d2p1:CR>
<d2p1:Color>sample string 12</d2p1:Color>
<d2p1:DayTime>4</d2p1:DayTime>
<d2p1:EditableHour>true</d2p1:EditableHour>
<d2p1:ExtraHour>true</d2p1:ExtraHour>
<d2p1:HalfDayTime>5</d2p1:HalfDayTime>
<d2p1:IsLinkedToAnyDriver>true</d2p1:IsLinkedToAnyDriver>
<d2p1:Name>sample string 3</d2p1:Name>
<d2p1:NightCR>true</d2p1:NightCR>
<d2p1:Order>11</d2p1:Order>
<d2p1:Payd>true</d2p1:Payd>
<d2p1:ProfilId>1251f696-8bf7-4547-8a65-d270368e01aa</d2p1:ProfilId>
<d2p1:Quota>true</d2p1:Quota>
<d2p1:Id>ab9f2293-0033-4743-9a22-d2ae6165924e</d2p1:Id>
</d2p1:AbsenceDto>
<d2p1:AbsenceDto>
<d2p1:AnalyticCode>sample string 14</d2p1:AnalyticCode>
<d2p1:AnalyticId>94a0f7fd-4217-4709-b634-30538211a8ee</d2p1:AnalyticId>
<d2p1:CR>true</d2p1:CR>
<d2p1:Color>sample string 12</d2p1:Color>
<d2p1:DayTime>4</d2p1:DayTime>
<d2p1:EditableHour>true</d2p1:EditableHour>
<d2p1:ExtraHour>true</d2p1:ExtraHour>
<d2p1:HalfDayTime>5</d2p1:HalfDayTime>
<d2p1:IsLinkedToAnyDriver>true</d2p1:IsLinkedToAnyDriver>
<d2p1:Name>sample string 3</d2p1:Name>
<d2p1:NightCR>true</d2p1:NightCR>
<d2p1:Order>11</d2p1:Order>
<d2p1:Payd>true</d2p1:Payd>
<d2p1:ProfilId>1251f696-8bf7-4547-8a65-d270368e01aa</d2p1:ProfilId>
<d2p1:Quota>true</d2p1:Quota>
<d2p1:Id>ab9f2293-0033-4743-9a22-d2ae6165924e</d2p1:Id>
</d2p1:AbsenceDto>
</Absences>
<Id>3c64beca-2d5c-4f54-8021-f40b11ff0c3c</Id>
</AbsenceProfileDto>