Update Timesheet
Update a timesheet’s fields, and/or archive or unarchive it.
Set isArchived to true/false to archive/unarchive the timesheet; this is applied independently of any other fields present in the same request.
Authentication
x-api-keystring
API Key authentication via header
Path parameters
timesheet_id
Request
This endpoint expects an object.
projectId
Reassign to a different project. At most one of projectId, accountId, or opportunityId may be provided.
accountId
Reassign to a different account. At most one of projectId, accountId, or opportunityId may be provided.
opportunityId
Reassign to a different opportunity. At most one of projectId, accountId, or opportunityId may be provided.
workOrderId
targetUserId
startDate
endDate
distance
laborHourlyRate
note
isArchived
Set true to archive, false to unarchive. Handled independently of the other fields.
Response
Timesheet updated 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
404
Not Found Error
502
Bad Gateway Error
