POST api/v2/socialdata/absence/profil
Ajoute 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": "95069b26-4769-4425-b7ae-d163afdbf850",
"Absences": [
{
"Id": "85ad7d92-98d7-42e2-a21f-2a91735a8221",
"ProfilId": "976b2e9c-2254-4f40-99a1-0b8dd9592fcd",
"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": "2bac6154-3659-4c1d-82c8-a8671e24b5f4",
"AnalyticCode": "sample string 13",
"IsLinkedToAnyDriver": true
},
{
"Id": "85ad7d92-98d7-42e2-a21f-2a91735a8221",
"ProfilId": "976b2e9c-2254-4f40-99a1-0b8dd9592fcd",
"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": "2bac6154-3659-4c1d-82c8-a8671e24b5f4",
"AnalyticCode": "sample string 13",
"IsLinkedToAnyDriver": true
}
],
"CustomerId": "3248d218-f847-4e97-bd06-18a2007cf552",
"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>3248d218-f847-4e97-bd06-18a2007cf552</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>2bac6154-3659-4c1d-82c8-a8671e24b5f4</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>976b2e9c-2254-4f40-99a1-0b8dd9592fcd</d2p1:ProfilId>
<d2p1:Quota>true</d2p1:Quota>
<d2p1:Id>85ad7d92-98d7-42e2-a21f-2a91735a8221</d2p1:Id>
</d2p1:AbsenceDefinitionDto>
<d2p1:AbsenceDefinitionDto>
<d2p1:AnalyticCode>sample string 13</d2p1:AnalyticCode>
<d2p1:AnalyticId>2bac6154-3659-4c1d-82c8-a8671e24b5f4</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>976b2e9c-2254-4f40-99a1-0b8dd9592fcd</d2p1:ProfilId>
<d2p1:Quota>true</d2p1:Quota>
<d2p1:Id>85ad7d92-98d7-42e2-a21f-2a91735a8221</d2p1:Id>
</d2p1:AbsenceDefinitionDto>
</Absences>
<Id>95069b26-4769-4425-b7ae-d163afdbf850</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": "00060c80-02f2-41dc-8788-32cc147885c8",
"Absences": [
{
"Id": "57719d93-3cd5-4c0e-80a8-941060209c2c",
"ProfilId": "6e2e136e-2ec5-4c59-86c6-578022386317",
"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": "a1b5e957-9813-4ed6-b19f-b795ca7ec768",
"AnalyticCode": "sample string 14",
"IsLinkedToAnyDriver": true
},
{
"Id": "57719d93-3cd5-4c0e-80a8-941060209c2c",
"ProfilId": "6e2e136e-2ec5-4c59-86c6-578022386317",
"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": "a1b5e957-9813-4ed6-b19f-b795ca7ec768",
"AnalyticCode": "sample string 14",
"IsLinkedToAnyDriver": true
}
],
"CustomerId": "8ef9eae2-ada3-4d17-aecc-4bc537fb73b5",
"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>8ef9eae2-ada3-4d17-aecc-4bc537fb73b5</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>a1b5e957-9813-4ed6-b19f-b795ca7ec768</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>6e2e136e-2ec5-4c59-86c6-578022386317</d2p1:ProfilId>
<d2p1:Quota>true</d2p1:Quota>
<d2p1:Id>57719d93-3cd5-4c0e-80a8-941060209c2c</d2p1:Id>
</d2p1:AbsenceDto>
<d2p1:AbsenceDto>
<d2p1:AnalyticCode>sample string 14</d2p1:AnalyticCode>
<d2p1:AnalyticId>a1b5e957-9813-4ed6-b19f-b795ca7ec768</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>6e2e136e-2ec5-4c59-86c6-578022386317</d2p1:ProfilId>
<d2p1:Quota>true</d2p1:Quota>
<d2p1:Id>57719d93-3cd5-4c0e-80a8-941060209c2c</d2p1:Id>
</d2p1:AbsenceDto>
</Absences>
<Id>00060c80-02f2-41dc-8788-32cc147885c8</Id>
</AbsenceProfileDto>