...
Code Block |
---|
language | xml |
---|
title | createProjectTimesheet |
---|
|
<peoplehr.createProjectTimesheet>
<startTime>{$ctx:startTime}</startTime>
<timesheetProject>{$ctx:timesheetProject}</timesheetProject>
<timesheetDetail>{$ctx:timesheetDetail}</timesheetDetail>
<projectTimesheetDate>{$ctx:projectTimesheetDate}</projectTimesheetDate>
<quantity>{$ctx:quantity}</quantity>
<timesheetTask>{$ctx:timesheetTask}</timesheetTask>
<notes>{$ctx:notes}</notes>
<totalHours>{$ctx:totalHours}</totalHours>
<endTime>{$ctx:endTime}</endTime>
</peoplehr.createProjectTimesheet> |
Properties
startTime:
The start time of the timesheet. Input format "hh:mm".timesheetProject:
The name of the project that the time sheet needs to be created for.timesheetDetail:
The detail name that needs to be entered in the timesheet.projectTimesheetDate:
The date of the project timesheet.quantity:
The quantity of the timesheet.timesheetTask:
The task name that needs to be entered in the timesheet.notes:
Any additional details about the timesheet.totalHours:
The total number of hours. It should match the start and end time.endTime:
The end time of the timesheet. Input format "hh:mm".
...
Code Block |
---|
language | xml |
---|
title | getProjectTimesheet |
---|
|
<peoplehr.getProjectTimesheet>
<startDate>{$ctx:startDate}</startDate>
<endDate>{$ctx:endDate}</endDate>
</peoplehr.getProjectTimesheet> |
Properties
startDate:
The start date of the project timesheet.endDate:
The end date of the project timesheet.
...
Code Block |
---|
language | xml |
---|
title | updateProjectTimesheet |
---|
|
<peoplehr.updateProjectTimesheet>
<startTime>{$ctx:startTime}</startTime>
<timesheetProject>{$ctx:timesheetProject}</timesheetProject>
<transactionId>{$ctx:transactionId}</transactionId>
<timesheetDetail>{$ctx:timesheetDetail}</timesheetDetail>
<quantity>{$ctx:quantity}</quantity>
<timesheetTask>{$ctx:timesheetTask}</timesheetTask>
<notes>{$ctx:notes}</notes>
<totalHours>{$ctx:totalHours}</totalHours>
<endTime>{$ctx:endTime}</endTime>
</peoplehr.updateProjectTimesheet> |
Properties
startTime:
The start time of the timesheet. Input format "hh:mm".timesheetProject:
The project name that the timesheet needs to be updated with.transactionId:
The ID of the transaction for creating the project timesheet.timesheetDetail:
The detail name that needs to be updated in the timesheet.quantity:
The quantity of the timesheet.timesheetTask:
The task name that needs to be updated in the timesheet.notes:
Any additional details about the timesheet.totalHours:
The total number of hours. It should match the start and end time.endTime:
The end time of the timesheet. Input format "hh:mm".
...
Code Block |
---|
language | xml |
---|
title | Sample Request for updateProjectTimesheet |
---|
collapse | true |
---|
|
{
"apiUrl": "https://api.peoplehr.net",
"apiKey": "c85c2570-0602-xxxxxxxxxx",
"employeeId": "PW555555",
"transactionId":"26571",
"timesheetProject":"wso2ConnectorProject",
"timesheetTask":"peopleHRDev",
"timesheetDetail":"ConnectorDevelopment",
"startTime":"08:00",
"endTime":"14:00",
"totalHours":"6",
"quantity":"100",
"notes":"Creating project timesheet for the daily."
} |
Anchor |
---|
| deleteProjectTimesheet |
---|
| deleteProjectTimesheet |
---|
|
...
Deleting a Project timesheet
The deleteProjectTimesheet
operation deletes an existing project timesheet.
Code Block |
---|
language | xml |
---|
title | deleteProjectTimesheet |
---|
|
<peoplehr.deleteProjectTimesheet>
<transactionId>{$ctx:transactionId}</transactionId>
</peoplehr.deleteProjectTimesheet> |
Properties
transactionId:Required -
The transaction ID of the timesheet.
Sample requestFollowing is a sample REST/JSON request that can be handled by the deleteProjectTimesheet
operation.
...