POST api/v2/socialdata/absence/profil
Ajoute un profil
Request Information
URI Parameters
None.
Body Parameters
AbsenceProfileDefinitionDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Absences | Collection of AbsenceDefinitionDto |
None. |
|
| CustomerId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| IsEditable | boolean |
None. |
|
| NbMonthlyHours | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "b5e31c12-7e68-4186-9b37-e78868fc0952",
"Absences": [
{
"Id": "df1accb9-8a8e-4ec1-b306-7bf175459883",
"ProfilId": "f2de0eb4-3e42-4dc0-a819-11b5df084bbf",
"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": "0703b711-c3f6-4f15-95a6-9a408aa23031",
"AnalyticCode": "sample string 13",
"IsLinkedToAnyDriver": true
},
{
"Id": "df1accb9-8a8e-4ec1-b306-7bf175459883",
"ProfilId": "f2de0eb4-3e42-4dc0-a819-11b5df084bbf",
"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": "0703b711-c3f6-4f15-95a6-9a408aa23031",
"AnalyticCode": "sample string 13",
"IsLinkedToAnyDriver": true
}
],
"CustomerId": "b3b9aefa-2ed2-4a3d-9b23-049881566356",
"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>b3b9aefa-2ed2-4a3d-9b23-049881566356</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>0703b711-c3f6-4f15-95a6-9a408aa23031</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>f2de0eb4-3e42-4dc0-a819-11b5df084bbf</d2p1:ProfilId>
<d2p1:Quota>true</d2p1:Quota>
<d2p1:Id>df1accb9-8a8e-4ec1-b306-7bf175459883</d2p1:Id>
</d2p1:AbsenceDefinitionDto>
<d2p1:AbsenceDefinitionDto>
<d2p1:AnalyticCode>sample string 13</d2p1:AnalyticCode>
<d2p1:AnalyticId>0703b711-c3f6-4f15-95a6-9a408aa23031</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>f2de0eb4-3e42-4dc0-a819-11b5df084bbf</d2p1:ProfilId>
<d2p1:Quota>true</d2p1:Quota>
<d2p1:Id>df1accb9-8a8e-4ec1-b306-7bf175459883</d2p1:Id>
</d2p1:AbsenceDefinitionDto>
</Absences>
<Id>b5e31c12-7e68-4186-9b37-e78868fc0952</Id>
</AbsenceProfileDefinitionDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AbsenceProfileDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Absences | Collection of AbsenceDto |
None. |
|
| CustomerId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| IsEditable | boolean |
None. |
|
| NbMonthlyHours | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": "6d0f215b-e26c-48e4-b189-948effd0be85",
"Absences": [
{
"Id": "4f14aef1-897e-434b-902e-f9038aa12916",
"ProfilId": "cd60bdeb-8442-4513-95f9-d2e8a0835c8c",
"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": "a4d08526-567d-4091-bbf8-b89c09980cb1",
"AnalyticCode": "sample string 14",
"IsLinkedToAnyDriver": true
},
{
"Id": "4f14aef1-897e-434b-902e-f9038aa12916",
"ProfilId": "cd60bdeb-8442-4513-95f9-d2e8a0835c8c",
"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": "a4d08526-567d-4091-bbf8-b89c09980cb1",
"AnalyticCode": "sample string 14",
"IsLinkedToAnyDriver": true
}
],
"CustomerId": "41be6c8b-b625-48b4-b3cc-7800a5ba31c1",
"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>41be6c8b-b625-48b4-b3cc-7800a5ba31c1</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>a4d08526-567d-4091-bbf8-b89c09980cb1</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>cd60bdeb-8442-4513-95f9-d2e8a0835c8c</d2p1:ProfilId>
<d2p1:Quota>true</d2p1:Quota>
<d2p1:Id>4f14aef1-897e-434b-902e-f9038aa12916</d2p1:Id>
</d2p1:AbsenceDto>
<d2p1:AbsenceDto>
<d2p1:AnalyticCode>sample string 14</d2p1:AnalyticCode>
<d2p1:AnalyticId>a4d08526-567d-4091-bbf8-b89c09980cb1</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>cd60bdeb-8442-4513-95f9-d2e8a0835c8c</d2p1:ProfilId>
<d2p1:Quota>true</d2p1:Quota>
<d2p1:Id>4f14aef1-897e-434b-902e-f9038aa12916</d2p1:Id>
</d2p1:AbsenceDto>
</Absences>
<Id>6d0f215b-e26c-48e4-b189-948effd0be85</Id>
</AbsenceProfileDto>