POST api/Job/{employeeNo}/{startDate}
Update a Job for an Employee. The key for updates is the StartDate
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| employeeNo |
Employee Number |
string |
Required |
| startDate |
Start Date in the format yyyy-MM-dd |
date |
Required |
Body Parameters
In request Body: Employee Job Details
JobDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| StartDate | date |
Required |
|
| JobTitle | string |
None. |
|
| WeeklyHoursWorked | decimal number |
None. |
|
| DailyRate |
Only stored for WorkerPayType Hourly |
decimal number |
None. |
| HourlyRate |
Only stored for WorkerPayType Hourly |
decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"StartDate": "2025-10-26T01:55:25.5375267+01:00",
"JobTitle": "sample string 2",
"WeeklyHoursWorked": 1.0,
"DailyRate": 1.0,
"HourlyRate": 1.0
}
application/xml, text/xml
Sample:
<JobDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebServicesRESTful.Models"> <DailyRate>1</DailyRate> <HourlyRate>1</HourlyRate> <JobTitle>sample string 2</JobTitle> <StartDate>2025-10-26T01:55:25.5375267+01:00</StartDate> <WeeklyHoursWorked>1</WeeklyHoursWorked> </JobDetail>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Result
ResultWithMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| result |
'OK', 'Error' |
string |
None. |
| message |
Returns if result is Error |
string |
None. |
| returnValue | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"result": "OK"
}
{
"result": "Error",
"message": "Unable to save: the..."
}
application/xml, text/xml
Sample:
<ResultWithMessage>
<result>OK</result>
</ResultWithMessage>
<ResultWithMessage>
<result>Error</result>
<message>Unable to save: the...</message>
</ResultWithMessage>