Skip to main content
POST
Create Availability

Overview

This endpoint allows parking spot owners to create availability windows for their spots.

Authentication

Request Body

spot_id
string
required
ID of the parking spot to make available
start_time
string
required
Availability start time (ISO 8601 format)
end_time
string
required
Availability end time (ISO 8601 format)

Response

availability
object
required
Created availability object

Example Request

Example Response

Validation Rules

  • start_time must be in the future
  • end_time must be after start_time
  • You can only create availabilities for spots you own
  • Availability windows cannot overlap with existing ones for the same spot