Skip to navigation

Update Staff Attendance Settings

Applies the same attendance settings to every staff member in salarybox_ids (1 to 50). Settings you don’t send stay as they are. Shared rules: see Writing data.

automation_rules needs a plan with Attendance Automation Rules, otherwise 403.

  • Send at least one of timezone, can_view_own_attendance, attendance_modes or automation_rules. Anything you leave out keeps its current value, including inside smartphone and automation_rules.
  • All or nothing: if any staff member is refused (unknown or inactive), nothing is saved.
  • Biometric and face recognition cannot be set here. Biometric comes from biometric device mapping, and face recognition from face enrolment in the SalaryBox app. face_recognition still appears in the response when the staff member has enrolled.
  • To see current values first, use List Staff Attendance Settings.

Authentication

AuthorizationApi-Key

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

Request

This endpoint expects an object.
salarybox_idslist of stringsRequired

The staff members to change (1 to 50, each listed once).

timezonestringOptional<=30 characters
IANA time zone name.
can_view_own_attendancebooleanOptional
Whether the staff member can see their own attendance in the app.
attendance_modesobjectOptional

How staff may mark attendance. Only smartphone can be set here.

automation_rulesobjectOptional
Rules that turn punches into a daily status. Send at least one rule. Needs a plan with Attendance Automation Rules.

Response

The settings were saved. One entry per staff member, in the same shape as List Staff Attendance Settings.
messagestring
statusboolean
datalist of objects
One entry per staff member, in the same shape as List Staff Attendance Settings. Not paginated.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error