Add a person or room for bookings
create_booking_resourceAdd a person or room that can be booked, with its weekly hours (in the business time zone), days off and spots (customers at the same time: 1 for a person, 6 for a class). When Google Calendar is connected it gets its own Google calendar. Which services it does is set on the service (resourceIds). For a restaurant, add one per table type: spots = how many tables of that type, partyMin/partyMax = the party sizes it seats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Up to 80 characters, e.g. "Ana" or "Room 2". | |
| hours | Yes | Weekly hours: {"mon": [["09:00","14:00"],["16:00","20:00"]], "tue": [...], ...}. Days mon…sun; a missing day is closed. | |
| spots | No | Customers at the same time, 1-500. Default 1. For a restaurant table type: how many tables of that type. | |
| active | No | false stops it from being booked without deleting it. | |
| timeOff | No | Whole days off, both inclusive. Replaces the current list. | |
| partyMax | No | Restaurant table type only: most people it seats. null = no limit. | |
| partyMin | No | Restaurant table type only: fewest people it seats. Default 1. | |
| workspaceId | No | Defaults to the workspace this connection is scoped to. | |
| idempotencyKey | No | Optional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice. |