Skip to main content

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.

If the facility for which you are creating the shift has the Auto Schedule feature enabled, the shifts will inherit the same Auto Schedule settings by default.

  • To enable only specific Auto Schedule options, use the autoScheduleSettings property in the request body to specify the desired options.
  • To create a shift without any Auto Schedule options, even if the facility has this feature enabled, set autoScheduleSettings to null or an empty array ([]).

Potential issues

  • Quoted shift not found Quote has expired
  • Auto schedule option is not enabled for this facility The facility for which you are creating the shift does not have the specified Auto Schedule option enabled

Request

Path Parameters

    quoteId stringrequired

    Shift QuoteId

    Example: d9d2a431-417a-4f37-bd8c-2cfdd9421e23

Body

    autoScheduleSettings string[]

    Possible values: [Favorites, Screenings]

    If the facility supports auto-scheduling, you can provide a list of auto-scheduling options.

Responses

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

Loading...