PUT api/PayrollLeaveType/Update

Request Information

URI Parameters

None.

Body Parameters

PayrollLeaveTypeUpdateVM
NameDescriptionTypeAdditional information
LeaveTypeId

integer

Required

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.

UpdateUser

integer

Required

UpdateIp

string

Required

String length: inclusive between 0 and 20

MinLeavecount

integer

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

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

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.