POST {language}/company/insertLeaveType

Request Information

URI Parameters

NameDescriptionTypeAdditional information
language

string

Required

Body Parameters

InsertLeaveTypeRequest
NameDescriptionTypeAdditional information
CompanyId

globally unique identifier

None.

Country

string

None.

Name

string

None.

Gender

string

None.

IsRequiredDocument

boolean

None.

ManageBalance

boolean

None.

TotalEntitlement

decimal number

None.

ManageBalanceType

string

None.

IsCheckMaximumEntitlement

boolean

None.

MaximumEntitlement

decimal number

None.

IsPaidbyCompany

boolean

None.

LeaveTypeCatalogue

string

None.

RequestId

globally unique identifier

None.

Language

string

None.

LanguageLogin

string

None.

AuthToken

string

None.

ClientId

string

None.

PageIndex

integer

None.

PageSize

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyId": "9d397f18-502b-4a07-8009-9436f1a33dc9",
  "Country": "sample string 2",
  "Name": "sample string 3",
  "Gender": "sample string 4",
  "IsRequiredDocument": true,
  "ManageBalance": true,
  "TotalEntitlement": 7.1,
  "ManageBalanceType": "sample string 8",
  "IsCheckMaximumEntitlement": true,
  "MaximumEntitlement": 10.1,
  "IsPaidbyCompany": true,
  "LeaveTypeCatalogue": "sample string 12",
  "RequestId": "2b8c9fe5-8ad7-4430-a3c5-a65f9a64e0bc",
  "Language": "sample string 14",
  "LanguageLogin": "sample string 15",
  "AuthToken": "sample string 16",
  "ClientId": "sample string 17",
  "PageIndex": 18,
  "PageSize": 19
}

application/xml, text/xml

Sample:
<InsertLeaveTypeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paytime.Infrastructure.WebApi.Models.Requests">
  <AuthToken xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 16</AuthToken>
  <ClientId xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 17</ClientId>
  <Language xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 14</Language>
  <LanguageLogin xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">sample string 15</LanguageLogin>
  <PageIndex xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">18</PageIndex>
  <PageSize xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">19</PageSize>
  <RequestId xmlns="http://schemas.datacontract.org/2004/07/Cadena.Common.WebApi">2b8c9fe5-8ad7-4430-a3c5-a65f9a64e0bc</RequestId>
  <CompanyId>9d397f18-502b-4a07-8009-9436f1a33dc9</CompanyId>
  <Country>sample string 2</Country>
  <Gender>sample string 4</Gender>
  <IsCheckMaximumEntitlement>true</IsCheckMaximumEntitlement>
  <IsPaidbyCompany>true</IsPaidbyCompany>
  <IsRequiredDocument>true</IsRequiredDocument>
  <LeaveTypeCatalogue>sample string 12</LeaveTypeCatalogue>
  <ManageBalance>true</ManageBalance>
  <ManageBalanceType>sample string 8</ManageBalanceType>
  <MaximumEntitlement>10.1</MaximumEntitlement>
  <Name>sample string 3</Name>
  <TotalEntitlement>7.1</TotalEntitlement>
</InsertLeaveTypeRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.