Improved
Time Clock: Shift Attachments on Clock-Out
5 days ago by ReadMe API
Clock out now accepts shift attachment values. Integrations can clock out users on time clocks that have required shift attachments, which the API used to reject.
What's New
- Updated guide: Real-Time Clocking — new Shift Attachments on Clock-Out section, a
shiftAttachmentsexample, and new error rows - Updated guide: Settings & Configuration — shows which attachment types can be set on clock-out
- Updated guide: Time Clock Overview — clock-out endpoint row and validation rules
Key Improvements
shiftAttachmentson clock-out:POST /time-clock/v1/time-clocks/{timeClockId}/clock-outtakes an optionalshiftAttachmentsarray. Each item has ashiftAttachmentIdand anattachmentvalue. Get the IDs from Get shift attachments.- Supported types:
dropdownList(itemId),freeText(freeText), andnumber(number).image,file, andsignaturecan't be set via API. - Existing values are kept: values the employee filled in during the shift stay on the shift. A value you send for the same attachment replaces it.
- Required attachments: every enabled, required shift attachment must have a value after merging. Otherwise the clock-out returns
400and the shift stays open. A time clock with a requiredimage,file, orsignatureattachment that has no value still can't be clocked out via API. - Validation:
shiftAttachmentIdmust be an enabled shift attachment on the time clock, the value field must match the attachment type, anditemIdmust be an enabled item of the dropdown list. - Backward compatible:
shiftAttachmentsis optional. Existing clock-out calls on time clocks without required shift attachments behave as before.
For full details and examples, see Real-Time Clocking and the Clock Out API Reference.
