Skip to main content
PUT
/
api
/
parking-spots
/
{id}
Update Parking Spot
curl --request PUT \
  --url https://harbor-parking.vercel.app/api/parking-spots/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "spot_number": "<string>",
  "building_section": "<string>"
}
'
{
  "spot": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "spot_number": "A-16",
    "owner_id": "456e7890-e89b-12d3-a456-426614174001",
    "building_section": "Level 3 Parking Garage",
    "is_verified": true,
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-16T11:45:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://lapscher.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

This endpoint allows spot owners to update their parking spot details.

Authentication

Path Parameters

id
string
required
Unique identifier of the parking spot to update

Request Body

spot_number
string
Updated spot number or identifier
building_section
string
Updated building section or location description

Response

spot
object
required
Updated parking spot object

Example Request

curl -X PUT "https://harbor-parking.vercel.app/api/parking-spots/123e4567-e89b-12d3-a456-426614174000" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "spot_number": "A-16",
    "building_section": "Level 3 Parking Garage"
  }'

Example Response

{
  "spot": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "spot_number": "A-16",
    "owner_id": "456e7890-e89b-12d3-a456-426614174001",
    "building_section": "Level 3 Parking Garage",
    "is_verified": true,
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-16T11:45:00Z"
  }
}