Padel App

Handle Padel App reservation logic

Actions7

Booking → Create

AI-generated

Summary

Create Booking

Inputs

  • courtId (required) — ID of the court to book.
  • startTime (required) — Start date and time of the reservation.
  • durationMinutes — Length of the reservation in minutes (default: 60).
  • playerCount — Number of players for the reservation (default: 4).
  • userId (required) — ID of the user making the booking.

Output shape

object

One output object per input item, containing the created reservation plus a system-generated ID and success message.

Examples

Example 1: Valid booking request

Court 12, 2025-04-01T10:00:00Z, duration 90, userId u7, playerCount 2

Example 2: Conflict detected

Court 12 already has a reservation overlapping the requested time

Discussion