Actions7
Court → Status
AI-generatedSummary
Checks a court's availability for a given date and time, returning whether it is occupied and a status message.
Inputs
- courtId (required) — Identifier of the court to check.
- date — Date to check availability for
- time — Time to check availability for
- durationMinutes — Duration to check availability for
Output shape
object with fields courtId, isAvailable (boolean), status (string), checkedDate, checkedDuration, and message
If both date and time are omitted, the check defaults to the current time with a 60‑minute duration; missing optional inputs use default behavior as defined in the source.
Examples
Example 1: Check if Court 12 is free on 2024-10-05 at 14:00 for 90 minutes
courtId: '12', date: '2024-10-05T14:00:00', time: '14:00', durationMinutes: 90
Example 2: Quickly verify current availability of Court 5 without specifying date/time
courtId: '5'
Example 3: Check status of Court 3 with a custom duration of 30 minutes
courtId: '3', durationMinutes: 30