Skip to main content
PATCH
/
timesheets
/
{timesheet_id}
Update a timesheet
curl --request PATCH \
  --url https://app.usequeue.com/api/v1/timesheets/{timesheet_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "task_id": "LgFv67mHFVGTrvmBG8nUZuV6",
  "start_time": "2025-01-18T15:00:00.000Z",
  "end_time": "2025-01-18T16:00:00.000Z",
  "notes": "Worked on setup",
  "billable": true,
  "billable_rate": 100.25
}
'
{
  "success": true,
  "timesheet": {
    "id": "V5xkqELXjhGwSpDJSWXGHumZ",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "task": {
      "id": "LgFv67mHFVGTrvmBG8nUZuV6",
      "title": "11"
    },
    "project": {
      "id": "3c82c4be",
      "title": "AirBnB edited"
    },
    "user": {
      "username": "Masud Hossain",
      "email": "[email protected]",
      "avatar": "<string>"
    },
    "is_active": true,
    "elapsed_time": 123,
    "start_time": "2023-11-07T05:31:56Z",
    "end_time": "2023-11-07T05:31:56Z",
    "duration": 3600,
    "notes": "<string>",
    "billable": true,
    "billable_rate": 123,
    "finished": true,
    "formatted_duration": "1 hours, 0 minutes, 0 seconds",
    "short_formatted_duration": {
      "display": "1h 0m",
      "decimal": 1
    },
    "hourly_rate": "100.25"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required

Query Parameters

task_id
string
required
notes
string
duration
integer
required

Duration of the timesheet in milliseconds

Body

application/json

The body is of type object.

Response

200 - application/json

Created

success
boolean
Example:

true

timesheet
object