POST api/farmWorkerSalary/update

Request Information

URI Parameters

None.

Body Parameters

Farm_Worker_Salary
NameDescriptionTypeAdditional information
Id

integer

None.

WorkerId

integer

Required

Department

string

Required

Salary

decimal number

Required

Month

string

Required

Year

string

Required

IsPaid

boolean

None.

Status

string

None.

PaymentDate

date

None.

DateModified

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "WorkerId": 2,
  "Department": "sample string 3",
  "Salary": 4.1,
  "Month": "sample string 5",
  "Year": "sample string 6",
  "IsPaid": true,
  "Status": "sample string 8",
  "PaymentDate": "2025-12-04T23:14:31.2411613+01:00",
  "DateModified": "2025-12-04T23:14:31.2411613+01:00"
}

application/xml, text/xml

Sample:
<Farm_Worker_Salary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaseLibrary.Entities">
  <DateModified>2025-12-04T23:14:31.2411613+01:00</DateModified>
  <Department>sample string 3</Department>
  <Id>1</Id>
  <IsPaid>true</IsPaid>
  <Month>sample string 5</Month>
  <PaymentDate>2025-12-04T23:14:31.2411613+01:00</PaymentDate>
  <Salary>4.1</Salary>
  <Status>sample string 8</Status>
  <WorkerId>2</WorkerId>
  <Year>sample string 6</Year>
</Farm_Worker_Salary>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Farm_Worker_Salary'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.