Skip to main content
PATCH
Update shift

Authorizations

Authorization
string
header
required

JWT token authentication

Path Parameters

id
integer
required

Shift ID

Body

application/json
title
string
date
string<date>
startTime
string<time>
endTime
string<time>
department
string
specialty
string
requiredWorkers
integer
status
enum<string>
Available options:
open,
assigned,
in_progress,
completed,
cancelled
urgency
enum<string>
Available options:
low,
medium,
high,
critical
rate
number<decimal>
notes
string

Response

Shift updated successfully

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>