Skip to navigation

Mark Staff Attendance

Sets attendance for up to 50 entries in one request. Each entry is one staff member on one date, and a request can mix staff and dates. Shared rules: see Writing data.

  • All or nothing: if any entry is refused, nothing is saved. errors.entries lists the entries in request order, with {} for each one that was fine.
  • date must be within the last 60 days in the staff member’s time zone, not in the future, and not in a finalised payroll month.
  • Each staff member and date pair can appear only once per request. A repeat returns 400.
  • An entry without leave_type clears any leave already recorded for that day, as the app does. is_half_day_leave needs leave_type.
  • Saving recalculates the staff member’s payroll for the affected cycle, as the app does.

Authentication

AuthorizationApi-Key

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

Request

This endpoint expects an object.
entrieslist of objectsRequired
The attendance to set, 1 to 50 entries. Each entry is one staff member on one date.

Response

The attendance was saved.
messagestring
statusboolean
datalist of objects

Errors

400
Bad Request Error
403
Forbidden Error
409
Conflict Error