Create a shift
POST/api/v1/shifts
Create a shift.
Request
Header Parameters
idempotency-key string
- application/json
Body
required
- Array [
- ]
data objectrequired
attributes objectrequired
externalFacilityId stringrequired
shifts object[]required
shiftLabel stringrequired
workerRequirements stringrequired
Accepts CNA, LVN, RN, CAREGIVER, NURSE, and Medication Aide
startTime date-timerequired
endTime date-timerequired
assignedTo object
externalUserId stringrequired
firstName stringrequired
lastName stringrequired
email string
phone string
workerType object
Accepts CNA, LVN, RN, CAREGIVER, Medication Aide
type stringrequired
Responses
- 200
- 4XX
- 5XX
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]required
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
{
"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"
}
}
}
]
}
- 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...