POST api/payroll/department/save

Saves the Department data.

Request Information

URI Parameters

None.

Body Parameters

The data.

Systemic.Model.Payroll.mlDepartment+DepartmentMaster
NamedescriptionTypeAdditional information
DepartmentSysID

integer

None.

Department

string

None.

BranchSysID

integer

None.

Locked

Systemic.Model.mlLocked

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "DepartmentSysID": 1,
  "Department": "sample string 2",
  "BranchSysID": 3,
  "Locked": {
    "LockedBy": "sample string 1",
    "LockedDate": "sample string 2",
    "LockedReason": "sample string 3",
    "IsLocked": true
  }
}

text/xml

Sample:
<mlDepartment.DepartmentMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Systemic.Model.Payroll">
  <BranchSysID>3</BranchSysID>
  <Department>sample string 2</Department>
  <DepartmentSysID>1</DepartmentSysID>
  <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>
</mlDepartment.DepartmentMaster>

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>