Create a timesheet
Creates a timesheet for a member. All time entries within the specified date range are associated with the timesheet and submitted for approval.
The start and end must fall within the same ISO week (Monday through Sunday). In the simplest case, start is Monday and end is Sunday of the same week.
Split weeks
When a workspace has split-week timesheets enabled (at month boundaries or semi-month boundaries), the timesheet period may be shorter than a full week. In these cases, start and end must match one of the valid split boundaries:
- Month-end split: If the workspace splits timesheets at the end of the month and a week crosses a month boundary, valid periods are Monday through the last day of the month, or the first day of the new month through Sunday.
- Semi-month split: If the workspace splits timesheets at the 15th of the month and a week crosses the 15th, valid periods are Monday through the 15th, or the 16th through Sunday.
If the provided dates do not match a valid period, the API returns a 400 error listing the accepted start and end dates.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The unique identifier of the member to create the timesheet for.
The start date of the timesheet period. Must be in the form YYYY-MM-DD.
The end date of the timesheet period. Must be on or after start and within the same ISO week. Must be in the form YYYY-MM-DD.
Response
200
The unique identifier for the object.
The start date of the timesheet period. Will be in the form YYYY-MM-DD.
The end date of the timesheet period. Will be in the form YYYY-MM-DD.
The timestamp when the object was created.
The timestamp when the timesheet was submitted.
The total number of hours tracked in this timesheet period.
The member this timesheet was submitted for.
The time entries included in this timesheet.