POST api/farmWorker/update
Request Information
URI Parameters
None.
Body Parameters
Farm_Worker| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Farm_PenId | integer |
Required |
|
| Name | string |
Required |
|
| string |
None. |
||
| Gender | string |
Required |
|
| PhoneNo | string |
Required |
|
| Salary | decimal number |
None. |
|
| DepartmentId | integer |
None. |
|
| Role | Role |
None. |
|
| DateHired | date |
None. |
|
| DateFired | date |
None. |
|
| DateCreated | date |
None. |
|
| DateModified | date |
None. |
|
| IsAppUser | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Farm_PenId": 2,
"Name": "sample string 3",
"Email": "sample string 4",
"Gender": "sample string 5",
"PhoneNo": "sample string 6",
"Salary": 1.1,
"DepartmentId": 7,
"Role": {
"Id": 1,
"RoleName": "sample string 2",
"RoleDescription": "sample string 3",
"Application": "sample string 4"
},
"DateHired": "2025-12-04T23:14:27.125575+01:00",
"DateFired": "2025-12-04T23:14:27.125575+01:00",
"DateCreated": "2025-12-04T23:14:27.125575+01:00",
"DateModified": "2025-12-04T23:14:27.125575+01:00",
"IsAppUser": true
}
application/xml
Sample:
text/xml
Sample:
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.