Skip to main content
GET
Get all shifts

Authorizations

Authorization
string
header
required

JWT token authentication

Query Parameters

facilityId
integer

Filter by facility ID

date
string<date>

Filter by specific date

status
enum<string>

Filter by shift status

Available options:
open,
assigned,
in_progress,
completed,
cancelled
staffId
integer

Filter by assigned staff member ID

startDate
string<date>

Filter from start date

endDate
string<date>

Filter to end date

Response

List of shifts

id
integer

Unique shift identifier

facilityId
integer

Facility where the shift takes place

title
string

Shift title or description

date
string<date>

Shift date

startTime
string<time>

Shift start time

endTime
string<time>

Shift end time

department
string | null

Department for the shift

specialty
string | null

Required specialty

requiredWorkers
integer

Number of workers needed

assignedStaffIds
integer[]

IDs of assigned staff members

status
enum<string>

Current shift status

Available options:
open,
assigned,
in_progress,
completed,
cancelled
urgency
enum<string>

Shift urgency level

Available options:
low,
medium,
high,
critical
rate
number<decimal> | null

Pay rate for the shift

notes
string | null

Additional notes or requirements

createdAt
string<date-time>
updatedAt
string<date-time>