POST api/v2/socialdata/absence/profil

Ajoute un profile

Request Information

URI Parameters

None.

Body Parameters

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.

Request Formats

application/json, text/json

Sample:
{
  "Id": "32437db0-0901-44bc-9b83-ffd67c097273",
  "Absences": [
    {
      "Id": "371fec7a-f5b7-4092-94da-767b2a130e7d",
      "ProfilId": "9e046b42-972f-4e63-a57f-60d61a69b349",
      "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": "ee6497c7-1df7-42eb-ac9e-151437db821e"
    },
    {
      "Id": "371fec7a-f5b7-4092-94da-767b2a130e7d",
      "ProfilId": "9e046b42-972f-4e63-a57f-60d61a69b349",
      "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": "ee6497c7-1df7-42eb-ac9e-151437db821e"
    }
  ],
  "CustomerId": "3976da7a-e5a9-4248-9571-6b7185bdb352",
  "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>3976da7a-e5a9-4248-9571-6b7185bdb352</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>ee6497c7-1df7-42eb-ac9e-151437db821e</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>9e046b42-972f-4e63-a57f-60d61a69b349</d2p1:ProfilId>
      <d2p1:Quota>true</d2p1:Quota>
      <d2p1:Id>371fec7a-f5b7-4092-94da-767b2a130e7d</d2p1:Id>
    </d2p1:AbsenceDefinitionDto>
    <d2p1:AbsenceDefinitionDto>
      <d2p1:AnalyticId>ee6497c7-1df7-42eb-ac9e-151437db821e</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>9e046b42-972f-4e63-a57f-60d61a69b349</d2p1:ProfilId>
      <d2p1:Quota>true</d2p1:Quota>
      <d2p1:Id>371fec7a-f5b7-4092-94da-767b2a130e7d</d2p1:Id>
    </d2p1:AbsenceDefinitionDto>
  </Absences>
  <Id>32437db0-0901-44bc-9b83-ffd67c097273</Id>
</AbsenceProfileDefinitionDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

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

Response Formats

application/json, text/json

Sample:
{
  "Id": "8b4ed4ce-a0ef-4368-8997-2620ffa059e5",
  "Absences": [
    {
      "Id": "37e6ae2a-c6d5-48ca-bfcc-45d06a8dd795",
      "ProfilId": "d16af418-654b-40d9-b6ff-1d98ad15b7bc",
      "Name": "sample string 3",
      "DayTime": 4,
      "HalfDayTime": 5,
      "Payd": true,
      "ExtraHour": true,
      "Quota": true,
      "CR": true,
      "Order": 10,
      "Color": "sample string 11",
      "EditableHour": true,
      "AnalyticId": "bd88f76e-1067-498a-beae-3a83bcaaf13f"
    },
    {
      "Id": "37e6ae2a-c6d5-48ca-bfcc-45d06a8dd795",
      "ProfilId": "d16af418-654b-40d9-b6ff-1d98ad15b7bc",
      "Name": "sample string 3",
      "DayTime": 4,
      "HalfDayTime": 5,
      "Payd": true,
      "ExtraHour": true,
      "Quota": true,
      "CR": true,
      "Order": 10,
      "Color": "sample string 11",
      "EditableHour": true,
      "AnalyticId": "bd88f76e-1067-498a-beae-3a83bcaaf13f"
    }
  ],
  "CustomerId": "58eb30ff-ab2b-4e21-bddd-c4c32cbfc95b",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "IsEditable": true
}

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>58eb30ff-ab2b-4e21-bddd-c4c32cbfc95b</CustomerId>
  <Description>sample string 3</Description>
  <IsEditable>true</IsEditable>
  <Name>sample string 2</Name>
  <Absences xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contract">
    <d2p1:AbsenceDto>
      <d2p1:AnalyticId>bd88f76e-1067-498a-beae-3a83bcaaf13f</d2p1:AnalyticId>
      <d2p1:CR>true</d2p1:CR>
      <d2p1:Color>sample string 11</d2p1:Color>
      <d2p1:DayTime>4</d2p1:DayTime>
      <d2p1:EditableHour>true</d2p1:EditableHour>
      <d2p1:ExtraHour>true</d2p1:ExtraHour>
      <d2p1:HalfDayTime>5</d2p1:HalfDayTime>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:Order>10</d2p1:Order>
      <d2p1:Payd>true</d2p1:Payd>
      <d2p1:ProfilId>d16af418-654b-40d9-b6ff-1d98ad15b7bc</d2p1:ProfilId>
      <d2p1:Quota>true</d2p1:Quota>
      <d2p1:Id>37e6ae2a-c6d5-48ca-bfcc-45d06a8dd795</d2p1:Id>
    </d2p1:AbsenceDto>
    <d2p1:AbsenceDto>
      <d2p1:AnalyticId>bd88f76e-1067-498a-beae-3a83bcaaf13f</d2p1:AnalyticId>
      <d2p1:CR>true</d2p1:CR>
      <d2p1:Color>sample string 11</d2p1:Color>
      <d2p1:DayTime>4</d2p1:DayTime>
      <d2p1:EditableHour>true</d2p1:EditableHour>
      <d2p1:ExtraHour>true</d2p1:ExtraHour>
      <d2p1:HalfDayTime>5</d2p1:HalfDayTime>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:Order>10</d2p1:Order>
      <d2p1:Payd>true</d2p1:Payd>
      <d2p1:ProfilId>d16af418-654b-40d9-b6ff-1d98ad15b7bc</d2p1:ProfilId>
      <d2p1:Quota>true</d2p1:Quota>
      <d2p1:Id>37e6ae2a-c6d5-48ca-bfcc-45d06a8dd795</d2p1:Id>
    </d2p1:AbsenceDto>
  </Absences>
  <Id>8b4ed4ce-a0ef-4368-8997-2620ffa059e5</Id>
</AbsenceProfileDto>