Checkin
A checkin: one attendance record for one employee, opened when they clock in and closed when they clock out.
- Summary view
- CheckinList, 8 fields. What a list returns by default.
- Detail view
- Checkin, 8 fields. The default for a single read and for every write.
- Read with
- api:
read: andcheckins::checkins read - Write with
- api:
write: checkins
A null checked_out_at means the checkin is still open: that is the only thing distinguishing an in-progress day from a finished one, and filter[checked_out_at][null]=true is how a client asks for it. Both timestamps are UTC; rendering them in the employee's own zone is a client concern.
Used by
Fields
- Detail only
- Only in the detail view.
- Only with include
- Only when you ask for it with include.
- Server-assigned
- Set by plnnrly, never by a request.
Employee this checkin belongs to. Assigned from the authenticated user on create and never writable.
The employee this checkin belongs to. Expanding it with ?include=user additionally requires the users::read permission and a token scope covering the users prefix.
When the employee clocked out, or null while the checkin is still open. A null value marks the checkin plnnrly shows as active.
Variants
CheckinList 8 fields
What a collection returns, and what ?view=summary returns on a single record.
The same fields as the detail object.
CheckinSummary 2 fields
The embedded form: what you get when another resource carries this one and you did not include it.
Leaves out: user_id, user, checked_out_at, created_at, updated_at, links
CheckinLinks 1 field
The links object on this resource.
Keys: self
Something wrong or missing on this page? Tell us