Schedule clinician to a shift
POST/api/v2/public/scheduled-shifts
Schedule a clinician to a shift.
After a shift is created, and a clinician requests it, you can use the Get requested shifts endpoint to check the clinicians who requested to work the shift. Additionally, you can Download the Clinician Profile to help you choose which clinician best fits the shift.
Users can also create a Webhook in our system to receive notifications when the a clinician requests to work a shift.
Request
- application/json
Body
required
Id of the shift
Id of the clinician
Responses
- 201
- 400
- 401
- 403
- 404
- application/json
- Schema
- Example (from schema)
Schema
data object
Id of the Facility
Id of the shift
Shift start date
Shift end date
License Type of the shift
clinician objectrequired
Id of the clinician
First name of the clinician
Last name of the clinician
Email of the clinician
Contact Phone of the clinician
Id of the user that scheduled the shift
Break Time for the shift
{
"data": {
"facilityId": "NUR-123456",
"shiftId": "4765568640",
"from": "2024-09-13T00:00:00.000Z",
"to": "2024-09-14T00:00:00.000Z",
"licenseType": "RN",
"clinician": {
"id": "I7002epLHLhBCypdPCrn9XP4kTN2",
"firstName": "Jane",
"lastName": "Doe",
"contactEmail": "jane@doe.com",
"contactPhone": "+12345678910"
},
"scheduledBy": "gsFu59GrbAhFmUB0QyYf1Ubg0Q5E",
"breakTime": "PT45M"
}
}
Bad request
- application/json
- Schema
- Example (from schema)
- Request Validation
Schema
Error description
The type of error
Status code of the error
{
"message": [
"Property must be a string"
],
"error": "Bad Request",
"statusCode": 400
}
Request Validation Error
{
"message": [
"shiftId must be a string",
"clinicianId must be a string"
],
"error": "Bad Request",
"statusCode": 400
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error description
Status code of the error
{
"message": "Unauthorized",
"statusCode": 401
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error description
The type of error
Status code of the error
{
"message": "Forbidden Resource",
"error": "Forbidden",
"statusCode": 403
}
Not Found
- application/json
- Schema
- Example (from schema)
- Clinician Not available
- Shift Not Found
- Request Not Found
- Clinician Not Found
Schema
Error description
The type of error
Status code of the error
{
"message": "Not Found",
"error": "Not Found",
"statusCode": 404
}
Clinician is no longer available
{
"message": "Clinician is no longer available",
"error": "Not Found",
"statusCode": 404
}
Shift not found
{
"message": "Shift not found",
"error": "Not Found",
"statusCode": 404
}
Shift request not found
{
"message": "Shift request not found",
"error": "Not Found",
"statusCode": 404
}
Clinician not found
{
"message": "Clinician not found",
"error": "Not Found",
"statusCode": 404
}