PUT api/Job/{employeeNo}
Add job details to an Employee
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
employeeNo |
Employee Number |
string |
Required |
Body Parameters
In request Body: Employee Job Details
JobDetailName | 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": "2024-12-23T06:29:55.7348721+00: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>2024-12-23T06:29:55.7348721+00:00</StartDate> <WeeklyHoursWorked>1</WeeklyHoursWorked> </JobDetail>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Result
ResultWithMessageName | 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>