Set up location
set_up_locationSet up a facility in one call: scheduling settings, weekly hours, appointment types, and doors, applied together (a bad entry changes nothing). Every part is optional. Types and doors are matched by name: a name that already exists at the location is updated (and reactivated if it was inactive), a new one is created, and anything you leave out is untouched, so repeating the call is safe. Doors refer to types by name, so you don't need ids. Returns the full setup and the booking-page checklist (bookingPage.problems is empty when carriers can book).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doors | No | ||
| settings | No | ||
| locationId | Yes | ||
| weeklyHours | No | Days you leave out keep their hours; an empty windows list closes that day. | |
| appointmentTypes | No |