Book an instructor
book_instructorBook a private session with an instructor for the signed-in person. Take one of the instructor’s free times (instructorId, start, end) unchanged, and only after the person has agreed to that instructor, time and price: from get_club with the club’s id, or from get_professional with no club, as a Professional is booked in their own right and agrees with the person where to meet. When the session needs an area (a court for a tennis lesson), add areaId and clubId: an area get_club shows free at exactly that time. Each answers at its own shortest length unless asked, so read get_club with a durationMinutes both offer to find it. The two are booked together, as one lesson, and priced as one. A Professional takes no area. It books exactly as 1club.me does: a membership of theirs that covers it is used, otherwise it is paid at the club. The answer gives the booking’s status and how it is covered, as created. A club that requires paying online when booking cannot be booked this way: the error says so.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | The time’s `end`. | |
| start | Yes | The time’s `start`. | |
| areaId | No | An area to book with the session, free at the same time. | |
| clubId | No | The club’s `id` from get_club, for an instructor found at a club. Left out for a Professional from get_professional. | |
| instructorId | Yes | The instructor’s `id`. |