Skip to navigation

Update Staff Punch

Moves an existing punch to a new time. Shared rules: see Writing data.

  • Identify the punch by salarybox_id, date, type and its current time, exactly as GET /attendance/time-entry returns them (matched to the second).
  • Only the time can change, not the type. The punch keeps its shift and break link.
  • new_timestamp follows the Add Staff Punch rules: not in the future, on date or the next day, date within the last 60 days and not in a finalised payroll month.
  • Deleting punches is not available through the API.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Request

This endpoint expects an object.
salarybox_idstringRequired
The staff member.
datedateRequired

YYYY-MM-DD attendance date of the punch.

typeenumRequired
Type of the punch to change.
Allowed values:
timestringRequired

The punch’s current time, ISO 8601 with a UTC offset, as GET /attendance/time-entry returns it.

new_timestampstringRequired
The new time, ISO 8601 with a UTC offset.

Response

The punch was updated.
messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error