Create Timesheet
Create a new timesheet (time entry) for a worker on a project, account, or opportunity (and optionally a work order).
Authentication
x-api-keystring
API Key authentication via header
Request
This endpoint expects an object.
targetUserId
Worker the time entry is logged for.
type
startDate
endDate
Must be after startDate.
projectId
Project this time entry belongs to. Exactly one of projectId, accountId, or opportunityId is required.
accountId
Account this time entry belongs to. Exactly one of projectId, accountId, or opportunityId is required.
opportunityId
Opportunity this time entry belongs to. Exactly one of projectId, accountId, or opportunityId is required.
workOrderId
Work order this time entry is logged against, if any.
distance
laborHourlyRate
note
Response
Timesheet created successfully
id
Unique identifier.
type
Time entry type.
status
Processing status of the time entry.
startDate
endDate
distance
Distance traveled, for TRAVEL entries.
note
isArchived
createdAt
updatedAt
projectId
Set when the linked record is a Project. Null when it is an Account (see accountId) or Opportunity (see opportunityId).
accountId
Set when the linked record is an Account. Null otherwise.
opportunityId
Set when the linked record is an Opportunity. Null otherwise.
workOrderId
targetUserId
The worker the time entry is logged for.
createdBy
updatedBy
laborHourlyRate
Labor cost ($/hr). Only visible with the appropriate financial privilege.
laborTotalCost
Only visible with the appropriate financial privilege.
Errors
400
Bad Request Error
401
Unauthorized Error
502
Bad Gateway Error
