latestOpenAPI 3.0.02026-08-1284111344.5 KB

14666f4db0f8

TimeSheets

Update an existing Time Sheet

Updates an existing Time Sheet and returns the updated Time Sheet.

put/v2/timeSheet/{id}

Path parameters

idstring required
Example:TS-f4e29a5a3f8a01a6

The time sheet ID (prefix TS-).

Headers

Authorizationstring required
Example:Bearer <token>

Bearer Token

Request body

techIdstring

The ID of the user clocked into this shift (prefix USR-).

laborCostnumber

The labor cost per hour of this shift.

startDatestring

The start date and time of the shift.

endDatestring

The end date and time of the shift.

notesstring

The notes of the shift.

Example request

{
  "techId": "USR-81ce48127c24fd23",
  "laborCost": 25,
  "startDate": "2024-07-25 09:00:00",
  "endDate": "2024-07-25 09:00:00",
  "notes": "This is a note"
}

Response

The updated Time Sheet.

idstring

The ID of the time sheet (prefix TS-).

techIdstring

The ID of the user logged to this shift (prefix USR-).

techNamestring

The name of the user logged to this shift.

startDatestring

The start date and time of the shift.

endDatestring

The end date and time of the shift.

notesstring

The notes of the shift.

jobIdstring

The ID of the job associated with this shift (prefix JOB-).

laborCostnumber

The labor cost per hour of this shift.

shiftLengthstring

The length of the shift in hours.

Example response

{
  "id": "TS-de9750285414508f",
  "techId": "USR-81ce48127c24fd23",
  "techName": "John Doe",
  "startDate": "2024-01-24 08:00:00",
  "endDate": "2024-01-24 16:00:00",
  "notes": "This is a note",
  "jobId": "JOB-BA5r7o4bqzR9MONa",
  "laborCost": 34.75,
  "shiftLength": "08:00"
}