v1
latestOpenAPI 3.1.02026-07-26549156879.0 KBAttendance > Shift
Creates a shift
Creates a complete shift by specifying both the clock-in and clock-out times. If you need to clock in directly, consider using or subscribing to the clock-in endpoint
post/api/2026-07-01/resources/attendance/shifts
Request body
Example request
{
"employee_id": "1",
"date": "2022-01-01",
"reference_date": "2022-01-01",
"day": 1,
"clock_in": "2024-01-01T12:12:01-02:00",
"clock_out": "2024-01-01T12:12:01-02:00",
"observations": "This is an observation",
"workable": true,
"location_type": "office",
"source": "desktop",
"time_settings_break_configuration_id": "1"
}Response
CREATED
Example response
{
"id": "1",
"employee_id": "1",
"date": "2023-10-01",
"reference_date": "2023-09-30",
"clock_in": "08:30",
"clock_out": "12:30",
"in_source": "automatic",
"out_source": "automatic",
"observations": "Employee arrived late due to traffic",
"location_type": "office",
"half_day": "beginning_of_day",
"in_location_latitude": 37.7749,
"in_location_longitude": -122.419,
"in_location_accuracy": 5,
"out_location_latitude": 37.7749,
"out_location_longitude": -122.419,
"out_location_accuracy": 5.7,
"workable": true,
"created_at": "2023-10-01T08:00:00.000Z",
"workplace_id": "1",
"time_settings_break_configuration_id": "1",
"company_id": "1",
"updated_at": "2023-10-01T08:00:00.000Z",
"minutes": 240,
"clock_in_with_seconds": "08:30:15"
}