Update a shift
PATCH/api/v1/shifts/:shiftId
Update a shift.
Request
Path Parameters
shiftId stringrequired
- application/json
Body
required
data objectrequired
attributes objectrequired
shiftLabel string
workerRequirements string
Accepts CNA, LVN, RN, CAREGIVER, NURSE, and Medication Aide
startTime date-time
endTime date-time
type stringrequired
Responses
- 200
- 4XX
- 5XX
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data objectrequired
attributes objectrequired
externalFacilityId stringrequired
startTime date-timerequired
endTime date-timerequired
shiftLabel stringrequired
workerRequirements stringrequired
Accepts CNA, LVN, RN, CAREGIVER, NURSE, and Medication Aide
createdAt date-timerequired
id stringrequired
type stringrequired
relationships objectrequired
assignment objectrequired
id stringrequired
type stringrequired
facilityUnit objectrequired
id stringrequired
type stringrequired
included object[]required
attributes objectrequired
name stringrequired
id stringrequired
type stringrequired
{
"data": {
"attributes": {
"externalFacilityId": "string",
"startTime": "2024-10-18T18:11:52.919Z",
"endTime": "2024-10-18T18:11:52.919Z",
"shiftLabel": "string",
"workerRequirements": "string",
"createdAt": "2024-10-18T18:11:52.919Z"
},
"id": "string",
"type": "string",
"relationships": {
"assignment": {
"id": "string",
"type": "string"
},
"facilityUnit": {
"id": "string",
"type": "string"
}
}
},
"included": [
{
"attributes": {
"name": "string"
},
"id": "string",
"type": "string"
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]required
code stringrequired
id stringrequired
status stringrequired
title stringrequired
{
"errors": [
{
"code": "string",
"id": "string",
"status": "string",
"title": "string"
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]required
code stringrequired
id stringrequired
status stringrequired
title stringrequired
{
"errors": [
{
"code": "string",
"id": "string",
"status": "string",
"title": "string"
}
]
}
Loading...