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

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

Response

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