Skip to main content

Create shifts

POST 

/api/v2/public/marketplace/shifts/batch

General Information

When creating shift price quotation is based on from, to dates, and optional breakTime params.

  • Failure: The process uses transactions, so if one job fails, all changes are reverted.
  • License Requirement: A valid licenseType must be provided when creating a shift.
  • Facility Connection: If the authenticated user is not connected with the facility, the system will return a "facility not found" error. In this case, refer to the facility connection request guide. Ensure you account for this response in your implementation.

Potential Issues

  • No Associated User: There is no user associated with the facility. At least one user must be created and associated with the facility.
  • No Associated User: The user needs to have a connection with the facility

Request

Body

required
    facilityId stringrequired
    shifts object[]required
  • Array [
  • licenseType stringrequired

    License Type of the shift

    description stringrequired

    Description of the shift, you can provide detailed information about the shift, it can include any relevant details that would help nurses understand the nature and requirements of the shift.

    from date-timerequired

    Shift start date

    to date-timerequired

    Shift end date, must be less than 24 hours after from field

    breakTime ISO 8601 duration

    Break Time for the shift

    autoScheduleEnabled boolean

    If the facility has auto-scheduling feature enabled then this property can be set to false to disable auto-scheduling for this shift.

  • ]

Responses

Schema
    data object[]
  • Array [
  • 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...