Retrieve multiple timesheets from HaloPSA with filtering options.
Parameters:
- Return All: Whether to return all results or limit
- Limit: Maximum number of timesheets to return (if Return All is false)
- Filters: Filtering options including:
- Agent ID: Filter by the specified agent
- Date: Filter by specific date
Retrieve a specific timesheet by its ID.
Parameters:
- Timesheet ID: The ID of the timesheet to retrieve
- Additional Fields: Optional filtering:
- Agent ID: Filter by the specified agent
- Date: Filter by specific date
Create a new timesheet in HaloPSA.
Required Parameters:
- Agent ID: The agent ID for the timesheet
- Date: The date for the timesheet
Optional Parameters (Additional Fields):
- Actual Hours: Actual hours worked
- Agent Name: The name of the agent
- Break Hours: Break hours taken
- Colour: Color code for the timesheet
- End Time: End time for the timesheet
- Start Time: Start time for the timesheet
- Target Hours: Target hours for the timesheet
- Timesheet Manager: ID of the timesheet manager
- Work Hours: Total work hours
- Workday ID: Associated workday ID
Update an existing timesheet.
Required Parameters:
- Timesheet ID: The ID of the timesheet to update
Optional Parameters (Update Fields):
- Actual Hours: Actual hours worked
- Agent ID: The agent ID for the timesheet
- Agent Name: The name of the agent
- Break Hours: Break hours taken
- Colour: Color code for the timesheet
- Date: The date for the timesheet
- End Time: End time for the timesheet
- Start Time: Start time for the timesheet
- Target Hours: Target hours for the timesheet
- Timesheet Manager: ID of the timesheet manager
- Work Hours: Total work hours
- Workday ID: Associated workday ID
Delete a timesheet from HaloPSA.
Required Parameters:
- Timesheet ID: The ID of the timesheet to delete
Common errors you may encounter:
- 401 Unauthorized: Invalid API credentials
- 403 Forbidden: Insufficient permissions to access timesheet data
- 400 Bad Request: Invalid parameters or missing required fields
- 404 Not Found: Timesheet ID does not exist
- 429 Too Many Requests: Rate limit exceeded, retry with exponential backoff
When debugging issues:
- Check that timesheet IDs exist and are accessible
- Verify agent IDs are valid when creating or filtering timesheets
- Ensure date formats are ISO 8601 compliant
- Validate time ranges (start_time should be before end_time)
- Check that work hours calculations are consistent with start/end times
Returns a collection of timesheets with record count and timesheet details including ID, agent information, dates, time tracking data, work hours, and color coding.
Returns a single timesheet object with full details including comprehensive timesheet information, agent relationships, time tracking data, management assignments, and configuration settings.