Skip to main content
POST
Create Claim

Overview

This endpoint allows users to claim an available parking spot for a specific time period.

Authentication

Request Body

availability_id
string
required
ID of the availability to claim
start_time
string
required
Claim start time (ISO 8601 format, must be within the availability window)
end_time
string
required
Claim end time (ISO 8601 format, must be within the availability window)

Response

claim
object
required
Created claim object

Example Request

Example Response

Validation Rules

  • The availability must not already be claimed
  • Claim times must be within the availability window
  • start_time must be in the future
  • end_time must be after start_time
  • You cannot claim your own parking spots

Error Responses