POST api/PayrollLeaveType/Save

Request Information

URI Parameters

None.

Body Parameters

PayrollLeaveTypeSaveVM
NameDescriptionTypeAdditional information
BookId

integer

Required

LeaveTypeName

string

Required

String length: inclusive between 0 and 100

Code

string

String length: inclusive between 0 and 10

Status

string

Required

Matching regular expression pattern: A|I

TotalDaysInYear

integer

None.

MaxAtATime

integer

None.

CanCombine

string

Matching regular expression pattern: Y|N

IsHolidayLeave

string

Matching regular expression pattern: Y|N

EarnWorkDays

integer

None.

EarnLeaveCount

integer

None.

CanAccumulate

string

Matching regular expression pattern: Y|N

MaxAccumulate

integer

None.

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

MinLeavecount

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "BookId": 1,
  "LeaveTypeName": "sample string 2",
  "Code": "sample string 3",
  "Status": "sample string 4",
  "TotalDaysInYear": 5,
  "MaxAtATime": 6,
  "CanCombine": "sample string 7",
  "IsHolidayLeave": "sample string 8",
  "EarnWorkDays": 9,
  "EarnLeaveCount": 10,
  "CanAccumulate": "sample string 11",
  "MaxAccumulate": 12,
  "CreateUser": 13,
  "CreateIp": "sample string 14",
  "MinLeavecount": 15
}

application/xml, text/xml

Sample:
<PayrollLeaveTypeSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <BookId>1</BookId>
  <CanAccumulate>sample string 11</CanAccumulate>
  <CanCombine>sample string 7</CanCombine>
  <Code>sample string 3</Code>
  <CreateIp>sample string 14</CreateIp>
  <CreateUser>13</CreateUser>
  <EarnLeaveCount>10</EarnLeaveCount>
  <EarnWorkDays>9</EarnWorkDays>
  <IsHolidayLeave>sample string 8</IsHolidayLeave>
  <LeaveTypeName>sample string 2</LeaveTypeName>
  <MaxAccumulate>12</MaxAccumulate>
  <MaxAtATime>6</MaxAtATime>
  <MinLeavecount>15</MinLeavecount>
  <Status>sample string 4</Status>
  <TotalDaysInYear>5</TotalDaysInYear>
</PayrollLeaveTypeSaveVM>

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.