Skip to main content
PUT
/
api
/
profile
Update User Profile
curl --request PUT \
  --url https://harbor-parking.vercel.app/api/profile \
  --header 'Content-Type: application/json' \
  --data '
{
  "full_name": "<string>",
  "apartment_number": "<string>",
  "phone_number": "<string>"
}
'
{
  "profile": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "email": "john.doe@example.com",
    "full_name": "John Doe",
    "apartment_number": "12A",
    "phone_number": "+1234567890",
    "is_approved": true,
    "is_admin": false,
    "updated_at": "2024-01-15T10:30: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 authenticated users to update their profile information such as full name, apartment number, and phone number.

Authentication

Request Body

full_name
string
User’s full name
apartment_number
string
User’s apartment number in the building
phone_number
string
User’s phone number

Response

profile
object
required
Updated user profile information

Example Request

curl -X PUT "https://harbor-parking.vercel.app/api/profile" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "full_name": "John Doe",
    "apartment_number": "12A",
    "phone_number": "+1234567890"
  }'

Example Response

{
  "profile": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "email": "john.doe@example.com",
    "full_name": "John Doe",
    "apartment_number": "12A",
    "phone_number": "+1234567890",
    "is_approved": true,
    "is_admin": false,
    "updated_at": "2024-01-15T10:30:00Z"
  }
}