Create shift assignment
POST/api/v1/shifts/:shiftId/assignments
Create a shift assignment, creating the worker if it does not exist.
Request
Path Parameters
shiftId stringrequired
- application/json
Body
required
data objectrequired
attributes objectrequired
externalUserId stringrequired
firstName stringrequired
lastName stringrequired
workerType stringrequired
Accepts CNA, LVN, RN, CAREGIVER, Medication Aide
email string
phone string
type stringrequired
Responses
- 200
- 4XX
- 5XX
- application/json
- Schema
- Example (from schema)
Schema
data objectrequired
attributes objectrequired
externalUserId stringrequired
firstName stringrequired
lastName stringrequired
email string
phone string
id stringrequired
type stringrequired
{
"data": {
"attributes": {
"externalUserId": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"phone": "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...