Timesheets
Get timesheets
Section titled “ Get timesheets ” GET
v3/projects/23423233/timesheets
returns all timesheets for the specified project.
[
{
"id": 23570135,
"title": "Prepare training material",
"estimated_hours": 100,
"logged_hours": 10,
"logged_mins": 30,
"creator": {
"id": 65707070
},
"project": {
"id": 23423233
},
"assigned": [
12009183,
11679192
],
"private": true,
"archived": false
},
{
"id": 23570136,
"title": "Sample timesheet",
"estimated_hours": 100,
"logged_hours": 10,
"logged_mins": 30,
"billable_hours": 5,
"billable_mins": 5,
"private": false,
"archived": false
}
] Get timesheet
Section titled “ Get timesheet ” GET
v3/projects/23423233/timesheets/23570135
returns the specified timesheet along with its time entries.
{
"id": 23570135,
"title": "Prepare training material",
"estimated_hours": 100,
"logged_hours": 10,
"logged_mins": 30,
"creator": {
"id": 12009183
},
"project": {
"id": 23423233
},
"assigned": [
12009183,
11679192
],
"private": true,
"archived": false
} Create timesheet
Section titled “ Create timesheet ” POST
v3/projects/23423233/timesheets
creates a new timesheet.
Request Body
{
"title": "Training intern",
"estimated_hours": "50",
"estimated_mins": "30",
"private": true,
"assigned": [
12009183,
11679192
]
}
The assigned array is optional and accepts People IDs.
201 Created is returned along with the created timesheet.
403 Forbidden is returned if access is denied.
Update timesheet
Section titled “ Update timesheet ” PUT
v3/projects/23423233/timesheets/23570135
updates an existing timesheet.
{
"title": "Training the interns",
"estimated_hours": "20",
"estimated_mins": "30"
} 200 OK is returned along with the updated timesheet.
403 Forbidden is returned if access is denied.
Delete timesheet
Section titled “ Delete timesheet ” DELETE
v3/projects/23423233/timesheets/23570135
deletes the specified timesheet.
Deleting a timesheet also removes access to its associated time entries. This action cannot be undone.
204 No Content is returned if the timesheet is deleted
successfully. 403 Forbidden is returned if access is denied.