POST api/Appreciation/PostEmployeeGiveAppreciation

Request Information

URI Parameters

None.

Body Parameters

EmployeeAppreciationViewModel
NameDescriptionTypeAdditional information
ProvidedEmployeeID

integer

None.

ReceivedEmployeeID

integer

None.

CategoryID

integer

None.

Score

integer

None.

Feedback

string

None.

AppreciationDate

date

None.

NotifyEmployeeMailIds

string

None.

RecievedEmployeelist

Collection of integer

None.

NotifyEmployeeList

Collection of LeaveNotifyEmployeesViewModel

None.

MessageToPeers

string

None.

NotifyPeersIND

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ProvidedEmployeeID": 1,
  "ReceivedEmployeeID": 2,
  "CategoryID": 3,
  "Score": 4,
  "Feedback": "sample string 5",
  "AppreciationDate": "2024-09-20T00:20:28.359652+05:30",
  "NotifyEmployeeMailIds": "sample string 7",
  "RecievedEmployeelist": [
    1,
    2
  ],
  "NotifyEmployeeList": [
    {
      "NotifyTypeId": 1,
      "LeaveApplicationID": 2,
      "PersonID": 3,
      "EmailIds": "sample string 4"
    },
    {
      "NotifyTypeId": 1,
      "LeaveApplicationID": 2,
      "PersonID": 3,
      "EmailIds": "sample string 4"
    }
  ],
  "MessageToPeers": "sample string 8",
  "NotifyPeersIND": true
}

application/xml, text/xml

Sample:
<EmployeeAppreciationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRMSWebAPI.Transaction.Appreciation">
  <AppreciationDate>2024-09-20T00:20:28.359652+05:30</AppreciationDate>
  <CategoryID>3</CategoryID>
  <Feedback>sample string 5</Feedback>
  <MessageToPeers>sample string 8</MessageToPeers>
  <NotifyEmployeeList xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRMSWebAPI.Transaction.Leave">
    <d2p1:LeaveNotifyEmployeesViewModel>
      <d2p1:EmailIds>sample string 4</d2p1:EmailIds>
      <d2p1:LeaveApplicationID>2</d2p1:LeaveApplicationID>
      <d2p1:NotifyTypeId>1</d2p1:NotifyTypeId>
      <d2p1:PersonID>3</d2p1:PersonID>
    </d2p1:LeaveNotifyEmployeesViewModel>
    <d2p1:LeaveNotifyEmployeesViewModel>
      <d2p1:EmailIds>sample string 4</d2p1:EmailIds>
      <d2p1:LeaveApplicationID>2</d2p1:LeaveApplicationID>
      <d2p1:NotifyTypeId>1</d2p1:NotifyTypeId>
      <d2p1:PersonID>3</d2p1:PersonID>
    </d2p1:LeaveNotifyEmployeesViewModel>
  </NotifyEmployeeList>
  <NotifyEmployeeMailIds>sample string 7</NotifyEmployeeMailIds>
  <NotifyPeersIND>true</NotifyPeersIND>
  <ProvidedEmployeeID>1</ProvidedEmployeeID>
  <ReceivedEmployeeID>2</ReceivedEmployeeID>
  <RecievedEmployeelist xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </RecievedEmployeelist>
  <Score>4</Score>
</EmployeeAppreciationViewModel>

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.