ko
팀 및 차량›List time off for a specific technician

List time off for a specific technician

Returns the technician's time-off records (pending, approved, rejected, cancelled), paginated, optionally bounded by start_date/end_date (YYYY-MM-DD, inclusive overlap) and status. Read this before recording a new block (overlaps are refused) and to see whether an absence is already recorded before `commitAbsenceResolve`.

인수

idstringpath필수
Technician ID
pageintegerquery선택
Page number (default 1)
limitintegerquery선택
Items per page (default 15)
start_datestringquery선택
Filter by start date (YYYY-MM-DD)
end_datestringquery선택
Filter by end date (YYYY-MM-DD)
status_idsarray<string>query선택
Filter by status (multi: pending|approved|rejected|cancelled)
keywordstringquery선택
Search reason (case-insensitive substring)
sincestringquery선택
RFC3339 cursor for short-polling; echo back next_since from prior response
GET/v1/technicians/{id}/time-off
curl -X GET "https://api.crisphive.com/v1/technicians/9b2f6c3e-1a4d-4f0a-8f2e-7c5d1b3a9e01/time-off" \
  -H "Authorization: Bearer chsk_test_4eC8xQ9mZ2pL7Ka0rT"

응답