latestOpenAPI 3.0.12026-08-192092911.2 MB

916e669fc527

Timesheets

Update a resource timesheet

Update the details of a single resource timesheet (required scope resources:write)

patch/v1/resources/{resourceId}/timesheets/{timesheetId}

Path parameters

resourceIdinteger required

The resource id

timesheetIdinteger required

The timesheet id

Headers

Customer-Idinteger required

The customer identifier

Request body

startedAtstring date-time

The updated clock-in timestamp<br/><br/>Optional: Omit to retain current value

endedAtstring date-time nullable

The updated clock-out timestamp<br/><br/>Optional: Omit to retain current value or provide null to unset

status'unsigned' | 'signed' | 'queried' | 'rejected' | 'approved' | 'paid'

The status of a resource timesheet.<p>Possible values:</p><ul><li><b>unsigned</b>: The timesheet has not yet been signed by the resource.</li><li><b>signed</b>: The timesheet has been signed by the resource.</li><li><b>queried</b>: The timesheet has been queried and requires review.</li><li><b>rejected</b>: The timesheet has been rejected.</li><li><b>approved</b>: The timesheet has been approved.</li><li><b>paid</b>: The timesheet has been paid.</li></ul>

Example request

{
  "startedAt": "2024-06-01T08:00:00.0000000+00:00",
  "endedAt": "2024-06-01T16:30:00.0000000+00:00",
  "status": "unsigned"
}

Response

No Content