Skip to main content
PUT
/
v1
/
scheduling
/
shifts
/
{id}
Update shift
curl --request PUT \
  --url http://localhost:3000/v1/scheduling/shifts/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "employeeId": 123,
  "date": "<string>",
  "startHour": 11,
  "startMinute": 29,
  "endHour": 11,
  "endMinute": 29,
  "area": "<string>",
  "publish": true
}
'
{
  "success": true,
  "message": "<string>",
  "shift": {
    "id": 123,
    "employeeId": 123,
    "startTime": "<string>",
    "endTime": "<string>"
  }
}

Path Parameters

id
integer | null

Shift (Roster) ID in Deputy

Example:

12345

Body

application/json

Update shift body

employeeId
integer

Deputy employee ID

date
string

Shift date (YYYY-MM-DD)

startHour
integer

Start hour (0-23)

Required range: 0 <= x <= 23
startMinute
integer

Start minute (0-59)

Required range: 0 <= x <= 59
endHour
integer

End hour (0-23)

Required range: 0 <= x <= 23
endMinute
integer

End minute (0-59)

Required range: 0 <= x <= 59
area
string

Operational unit name

publish
boolean

Publish shift

Response

Shift updated

Shift create/update/delete response

success
boolean
required
message
string
required
shift
object