Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titlecreateProjectTimesheet
<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
languagexml
titlegetProjectTimesheet
 <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
languagexml
titleupdateProjectTimesheet
<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
languagexml
titledeleteProjectTimesheet
<peoplehr.deleteProjectTimesheet>
    <transactionId>{$ctx:transactionId}</transactionId>
</peoplehr.deleteProjectTimesheet>
Properties
  • transactionId:Required -The transaction ID of the timesheet.

Anchor
request
request
Sample request

Following is a sample REST/JSON request that can be handled by the deleteProjectTimesheet operation.

Code Block
languagexml
titleSample request for deletetimesheelProject
{
    "apiUrl":"https://api.peoplehr.net",
    "apiKey":"f6eeba00-e7c8-xxxxxxxxxx",
    "employeeId":"pw2",
    "transactionId":"667902"
}

...