Create shift from quote
POST/api/v2/public/marketplace/shifts/quote/:quoteId/shift
General Information
Based on previously created quote you can now create a shift.
Potential issues
- Quoted shift not found Quote has expired
Request
Path Parameters
quoteId stringrequired
Shift QuoteId
Example: 778d1141-376b-49e3-9478-409fb09f0963
Responses
- 201
- 400
- 401
- 403
- 404
- application/json
- Schema
- Example (from schema)
Schema
data object
shiftId stringrequired
Id of the shift
facilityId stringrequired
Id of the Facility
description stringrequired
Description of the Shift
from date-timerequired
Shift start date
to date-timerequired
Shift end date
licenseType stringrequired
License Type of the shift
price objectrequired
billRatePerHour numberrequired
Price per hour
totalAmount numberrequired
Total price
createdBy string
Id of the user that created the shift
breakTime ISO 8601 duration
Break Time for the shift
{
"data": {
"shiftId": "12120878",
"facilityId": "NUR-0879",
"description": "Must take 30 minute break",
"from": "2022-09-13T00:00:00.000Z",
"to": "2022-09-14T00:00:00.000Z",
"licenseType": "RN",
"price": {
"billRatePerHour": 47.5,
"totalAmount": 178.8
},
"createdBy": "gsFu59GrbAhFmUB0QyYf1Ubg0Q5E",
"breakTime": "PT45M"
}
}
Bad request
- application/json
- Schema
- Example (from schema)
- Request Validation
Schema
message string[]
Error description
error string
The type of error
statusCode integer
Status code of the error
{
"message": [
"Property must be a string"
],
"error": "Bad Request",
"statusCode": 400
}
Request Validation Error
{
"message": [
"quoteId must be a string"
],
"error": "Bad Request",
"statusCode": 400
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
message string
Error description
statusCode integer
Status code of the error
{
"message": "Unauthorized",
"statusCode": 401
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
message string
Error description
error string
The type of error
statusCode integer
Status code of the error
{
"message": "Forbidden Resource",
"error": "Forbidden",
"statusCode": 403
}
Not Found
- application/json
- Schema
- Example (from schema)
- Quote Not Found
Schema
message string
Error description
error string
The type of error
statusCode integer
Status code of the error
{
"message": "Not Found",
"error": "Not Found",
"statusCode": 404
}
Quote was not found
{
"message": "Quoted shift not found",
"error": "Not Found",
"statusCode": 404
}
Loading...