Skip to main content
PATCH
Change a timesheet entry

Authorizations

API-Key
string
header
required

Your API key, from More → API & Integrations in the dashboard, or from ht signup / ht auth login.

Path Parameters

id
string
required

Entry id clockInId_clockOutId, as listed ("-" for a missing side).

Body

application/json

Times either as HH:mm on a day (date, and clockOutDate when the clock-out is on another day) or as ms timestamps (clockInAt, clockOutAt). Use clockIn or clockInAt, not both; the same for clockOut. Times are read in the caller's time zone.

memberId
string

Create only, required: a member of the company.

date
string<date>

YYYY-MM-DD; required on create when clockIn or clockOut is used. On update it defaults to the entry's day.

clockOutDate
string<date>

YYYY-MM-DD of the clock-out; defaults to date.

clockIn
string

HH:mm (00:00 to 24:00).

Pattern: ^\d{2}:\d{2}$
clockOut
string

HH:mm (00:00 to 24:00).

Pattern: ^\d{2}:\d{2}$
clockInAt
integer<int64>

Milliseconds since the epoch (a numeric string works too).

clockOutAt
integer<int64>

Milliseconds since the epoch.

Response

OK

data
object

The payload.

error
null
meta
object