POST api/payroll/Designation/save

Saves the Designation data.

Request Information

URI Parameters

None.

Body Parameters

The data.

Systemic.Model.Payroll.mlDesignation+mlStaffDesignation
NamedescriptionTypeAdditional information
DesignationSysID

integer

None.

Designation

string

None.

ShiftName

string

None.

ShiftSysID

byte

None.

IsAllowLeaveReduction

boolean

None.

IsAllowPermissionReduction

boolean

None.

NoOfLeaveCL

decimal number

None.

NoOfLeaveEL

decimal number

None.

NoOfPermission

decimal number

None.

BasicPay

decimal number

None.

GradePay

decimal number

None.

DA

decimal number

None.

CA

decimal number

None.

HRA

decimal number

None.

MA

decimal number

None.

IsAllowPFReduction

boolean

None.

IsAllowEsiReduction

boolean

None.

IsAllowTDSReduction

boolean

None.

AccountSysID

integer

None.

PayModeSysID

integer

None.

GraceHours

decimal number

None.

BranchSysID

byte

None.

Locked

Systemic.Model.mlLocked

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "DesignationSysID": 1,
  "Designation": "sample string 2",
  "ShiftName": "sample string 3",
  "ShiftSysID": 64,
  "IsAllowLeaveReduction": true,
  "IsAllowPermissionReduction": true,
  "NoOfLeaveCL": 7.0,
  "NoOfLeaveEL": 8.0,
  "NoOfPermission": 9.0,
  "BasicPay": 10.0,
  "GradePay": 11.0,
  "DA": 12.0,
  "CA": 13.0,
  "HRA": 14.0,
  "MA": 15.0,
  "IsAllowPFReduction": true,
  "IsAllowEsiReduction": true,
  "IsAllowTDSReduction": true,
  "AccountSysID": 19,
  "PayModeSysID": 20,
  "GraceHours": 21.0,
  "BranchSysID": 64,
  "Locked": {
    "LockedBy": "sample string 1",
    "LockedDate": "sample string 2",
    "LockedReason": "sample string 3",
    "IsLocked": true
  }
}

text/xml

Sample:
<mlDesignation.mlStaffDesignation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Systemic.Model.Payroll">
  <AccountSysID>19</AccountSysID>
  <BasicPay>10</BasicPay>
  <BranchSysID>64</BranchSysID>
  <CA>13</CA>
  <DA>12</DA>
  <Designation>sample string 2</Designation>
  <DesignationSysID>1</DesignationSysID>
  <GraceHours>21</GraceHours>
  <GradePay>11</GradePay>
  <HRA>14</HRA>
  <IsAllowEsiReduction>true</IsAllowEsiReduction>
  <IsAllowLeaveReduction>true</IsAllowLeaveReduction>
  <IsAllowPFReduction>true</IsAllowPFReduction>
  <IsAllowPermissionReduction>true</IsAllowPermissionReduction>
  <IsAllowTDSReduction>true</IsAllowTDSReduction>
  <Locked xmlns:d2p1="http://schemas.datacontract.org/2004/07/Systemic.Model">
    <d2p1:IsLocked>true</d2p1:IsLocked>
    <d2p1:LockedBy>sample string 1</d2p1:LockedBy>
    <d2p1:LockedDate>sample string 2</d2p1:LockedDate>
    <d2p1:LockedReason>sample string 3</d2p1:LockedReason>
  </Locked>
  <MA>15</MA>
  <NoOfLeaveCL>7</NoOfLeaveCL>
  <NoOfLeaveEL>8</NoOfLeaveEL>
  <NoOfPermission>9</NoOfPermission>
  <PayModeSysID>20</PayModeSysID>
  <ShiftName>sample string 3</ShiftName>
  <ShiftSysID>64</ShiftSysID>
</mlDesignation.mlStaffDesignation>

response Information

Resource description

ServerResponse.

Api.Server.ServerResponse
NamedescriptionTypeAdditional information
response

string

None.

success

Api.Server.MlSuccess

None.

failure

Api.Server.MlError

None.

response Formats

application/json, text/json, text/html

Sample:
{
  "response": "sample string 1",
  "success": null,
  "failure": null
}

text/xml

Sample:
<ServerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Server">
  <failure i:nil="true" />
  <response>sample string 1</response>
  <success i:nil="true" />
</ServerResponse>