PUT api/Staff/Salary?staffId={staffId}&appraisalId={appraisalId}&salaryId={salaryId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
staffId

integer

Required

appraisalId

integer

Required

salaryId

integer

Required

Body Parameters

StaffSalaryViewModel
NameDescriptionTypeAdditional information
id

integer

None.

AppraisalId

integer

None.

SalaryComponentId

integer

None.

SalaryComponent

SalaryComponentViewModel

None.

amount

decimal number

None.

Comment

string

None.

Component

string

None.

IsDeduction

boolean

None.

TypeId

integer

None.

Type

string

None.

Figure

integer

None.

BaseSalaryComponentId

integer

None.

BaseSalaryComponent

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "AppraisalId": 2,
  "SalaryComponentId": 3,
  "SalaryComponent": {
    "id": 1,
    "Component": "sample string 2",
    "IsDeduction": true,
    "TypeId": 4,
    "Type": "sample string 5",
    "Figure": 1,
    "BaseSalaryComponentId": 1,
    "BaseSalaryComponent": "sample string 6"
  },
  "amount": 4.1,
  "Comment": "sample string 5",
  "Component": "sample string 6",
  "IsDeduction": true,
  "TypeId": 1,
  "Type": "sample string 8",
  "Figure": 1,
  "BaseSalaryComponentId": 1,
  "BaseSalaryComponent": "sample string 9"
}

application/xml, text/xml

Sample:
<StaffSalaryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels.StaffDetails">
  <AppraisalId>2</AppraisalId>
  <BaseSalaryComponent>sample string 9</BaseSalaryComponent>
  <BaseSalaryComponentId>1</BaseSalaryComponentId>
  <Comment>sample string 5</Comment>
  <Component>sample string 6</Component>
  <Figure>1</Figure>
  <IsDeduction>true</IsDeduction>
  <SalaryComponent>
    <BaseSalaryComponent>sample string 6</BaseSalaryComponent>
    <BaseSalaryComponentId>1</BaseSalaryComponentId>
    <Component>sample string 2</Component>
    <Figure>1</Figure>
    <IsDeduction>true</IsDeduction>
    <Type>sample string 5</Type>
    <TypeId>4</TypeId>
    <id>1</id>
  </SalaryComponent>
  <SalaryComponentId>3</SalaryComponentId>
  <Type>sample string 8</Type>
  <TypeId>1</TypeId>
  <amount>4.1</amount>
  <id>1</id>
</StaffSalaryViewModel>

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.