GET api/v2/socialdata/absence/profil/add/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

AbsenceProfileDefinitionDto
NameDescriptionTypeAdditional 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.

Response Formats

application/json, text/json

Sample:
{
  "Id": "62a959c7-503d-47ff-bc67-e308bc6bb427",
  "Absences": [
    {
      "Id": "6b6f3a40-45df-4452-b2bf-00b5a8889382",
      "ProfilId": "1a000f18-c8e5-4150-8ae7-2c6c1e313905",
      "Name": "sample string 2",
      "DayTime": 3,
      "HalfDayTime": 4,
      "Payd": true,
      "ExtraHour": true,
      "Quota": true,
      "CR": true,
      "Order": 9,
      "Color": "sample string 10",
      "EditableHour": true,
      "AnalyticId": "b6b850bd-0d4d-42b0-a677-08e63d85a9b8"
    },
    {
      "Id": "6b6f3a40-45df-4452-b2bf-00b5a8889382",
      "ProfilId": "1a000f18-c8e5-4150-8ae7-2c6c1e313905",
      "Name": "sample string 2",
      "DayTime": 3,
      "HalfDayTime": 4,
      "Payd": true,
      "ExtraHour": true,
      "Quota": true,
      "CR": true,
      "Order": 9,
      "Color": "sample string 10",
      "EditableHour": true,
      "AnalyticId": "b6b850bd-0d4d-42b0-a677-08e63d85a9b8"
    }
  ],
  "CustomerId": "29f77228-ee2f-415c-9169-b38e926cb9f3",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "IsEditable": true
}

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>29f77228-ee2f-415c-9169-b38e926cb9f3</CustomerId>
  <Description>sample string 2</Description>
  <IsEditable>true</IsEditable>
  <Name>sample string 1</Name>
  <Absences xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contract">
    <d2p1:AbsenceDefinitionDto>
      <d2p1:AnalyticId>b6b850bd-0d4d-42b0-a677-08e63d85a9b8</d2p1:AnalyticId>
      <d2p1:CR>true</d2p1:CR>
      <d2p1:Color>sample string 10</d2p1:Color>
      <d2p1:DayTime>3</d2p1:DayTime>
      <d2p1:EditableHour>true</d2p1:EditableHour>
      <d2p1:ExtraHour>true</d2p1:ExtraHour>
      <d2p1:HalfDayTime>4</d2p1:HalfDayTime>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Order>9</d2p1:Order>
      <d2p1:Payd>true</d2p1:Payd>
      <d2p1:ProfilId>1a000f18-c8e5-4150-8ae7-2c6c1e313905</d2p1:ProfilId>
      <d2p1:Quota>true</d2p1:Quota>
      <d2p1:Id>6b6f3a40-45df-4452-b2bf-00b5a8889382</d2p1:Id>
    </d2p1:AbsenceDefinitionDto>
    <d2p1:AbsenceDefinitionDto>
      <d2p1:AnalyticId>b6b850bd-0d4d-42b0-a677-08e63d85a9b8</d2p1:AnalyticId>
      <d2p1:CR>true</d2p1:CR>
      <d2p1:Color>sample string 10</d2p1:Color>
      <d2p1:DayTime>3</d2p1:DayTime>
      <d2p1:EditableHour>true</d2p1:EditableHour>
      <d2p1:ExtraHour>true</d2p1:ExtraHour>
      <d2p1:HalfDayTime>4</d2p1:HalfDayTime>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Order>9</d2p1:Order>
      <d2p1:Payd>true</d2p1:Payd>
      <d2p1:ProfilId>1a000f18-c8e5-4150-8ae7-2c6c1e313905</d2p1:ProfilId>
      <d2p1:Quota>true</d2p1:Quota>
      <d2p1:Id>6b6f3a40-45df-4452-b2bf-00b5a8889382</d2p1:Id>
    </d2p1:AbsenceDefinitionDto>
  </Absences>
  <Id>62a959c7-503d-47ff-bc67-e308bc6bb427</Id>
</AbsenceProfileDefinitionDto>