Create shifts
documentedCreate time tracking shifts (may include corrections).
POST /rest/v2/time_tracking/shiftsTime Trackingno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.letsdeel.com/rest/v2/time_tracking/shifts" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"data": {"contract_id": "{{$contract_id}}", "shifts": [ { "external_id": "{{$external_id}}", "description": "{{$description}}", "date_of_work": "{{$date_of_work}}", "meta": { "start": { "date": "{{$start_date}}", "time": "{{$start_time}}", "is_rest_day": {{$start_is_rest_day}}, "is_public_holiday": {{$start_is_public_holiday}} }, "end": { "date": "{{$end_date}}", "time": "{{$end_time}}", "is_rest_day": {{$end_is_rest_day}}, "is_public_holiday": {{$end_is_public_holiday}} }, "breaks": [ { "start": { "date": "{{$break_start_date}}", "time": "{{$break_start_time}}" }, "end": { "date": "{{$break_end_date}}", "time": "{{$break_end_time}}" }, "is_paid": {{$break_is_paid}} } ], "approval_date": "{{$approval_date}}" }, "summary": { "shift_rate_external_id": "{{$shift_rate_external_id}}", "shift_duration_hours": {{$shift_duration_hours}}, "total_break_hours": {{$total_break_hours}}, "payable_break_hours": {{$payable_break_hours}}, "total_payable_hours": {{$total_payable_hours}} } } ] }}'"