availability-legacy

Create Availabilities Bulk

Changed on

Open a period of slots in one write, skipping what cannot be opened.

post/api/availabilities/bulk

Request

  • Base URL: https://api.corabea.it (the document declares no server; this is the origin it was published from)
  • URL: https://api.corabea.it/api/availabilities/bulk
  • Auth: HTTP bearer

Request body

daysstring[] required
startsstring[] required

Slot starts on the clinic's wall clock (Europe/Rome). Which minutes a start may fall on follows the operator's role and is checked server-side.

location_type'online' | 'in_person'

Appointment location type constants.

operator_idstring nullable

Whose availability to open; admin and customer care may open another operator's

also_in_personboolean

Customer care only: online slots also offered in presenza at clinic_location_id, for a call conoscitiva. No room is taken until one is booked there.

clinic_location_idstring uuid nullable

The clinic of also_in_person slots

replace_existingboolean

Replace only the operator's free openings overlapping newly published slots. Other openings, including those held by an appointment or checkout, stay.

Response

Successful Response

plannedinteger required

Slots the plan expands to

openableinteger required

Slots that would actually be created

already_openinteger

Slots this operator already has at that exact start

conflictinginteger

Slots overlapping an existing availability or appointment

without_roominteger

in_person slots with no free room at the clinic

replacedinteger

Free openings on the plan's days deleted first (replace_existing)

createdinteger required

Rows written

operator_alert_syncobject nullable

Outcome of the availability alert re-check, run once after the batch

Changes

    • ○

      added the new optional request property

    • ○

      added the optional property to the response with the status

    • ○

      added the new optional request property

    • ○

      added the new optional request property