PUT api/staffs/{staffId}/appraisals/{appraisalId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
staffId

integer

Required

appraisalId

integer

Required

Body Parameters

AppraisalViewModel
NameDescriptionTypeAdditional information
id

integer

None.

StaffId

integer

None.

StartDate

date

None.

EndDate

date

None.

NewCTC

integer

None.

Comments

string

None.

AppraisalTypeId

integer

None.

AppraisalTypeName

string

None.

AppointmentTypeId

integer

None.

AppointmentTypeName

string

None.

Documents

Collection of DocumentViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "StaffId": 2,
  "StartDate": "2020-10-30T19:22:11.9796654-04:00",
  "EndDate": "2020-10-30T19:22:11.9796654-04:00",
  "NewCTC": 5,
  "Comments": "sample string 6",
  "AppraisalTypeId": 7,
  "AppraisalTypeName": "sample string 8",
  "AppointmentTypeId": 9,
  "AppointmentTypeName": "sample string 10",
  "Documents": [
    {
      "DocumentUId": "cd40bcfc-0f61-4a3b-a518-82e184b3f557",
      "DocumentName": "sample string 2",
      "Action": "sample string 3"
    },
    {
      "DocumentUId": "cd40bcfc-0f61-4a3b-a518-82e184b3f557",
      "DocumentName": "sample string 2",
      "Action": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<AppraisalViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels.StaffDetails">
  <AppointmentTypeId>9</AppointmentTypeId>
  <AppointmentTypeName>sample string 10</AppointmentTypeName>
  <AppraisalTypeId>7</AppraisalTypeId>
  <AppraisalTypeName>sample string 8</AppraisalTypeName>
  <Comments>sample string 6</Comments>
  <Documents xmlns:d2p1="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels.Common">
    <d2p1:DocumentViewModel>
      <d2p1:Action>sample string 3</d2p1:Action>
      <d2p1:DocumentName>sample string 2</d2p1:DocumentName>
      <d2p1:DocumentUId>cd40bcfc-0f61-4a3b-a518-82e184b3f557</d2p1:DocumentUId>
    </d2p1:DocumentViewModel>
    <d2p1:DocumentViewModel>
      <d2p1:Action>sample string 3</d2p1:Action>
      <d2p1:DocumentName>sample string 2</d2p1:DocumentName>
      <d2p1:DocumentUId>cd40bcfc-0f61-4a3b-a518-82e184b3f557</d2p1:DocumentUId>
    </d2p1:DocumentViewModel>
  </Documents>
  <EndDate>2020-10-30T19:22:11.9796654-04:00</EndDate>
  <NewCTC>5</NewCTC>
  <StaffId>2</StaffId>
  <StartDate>2020-10-30T19:22:11.9796654-04:00</StartDate>
  <id>1</id>
</AppraisalViewModel>

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.