cURL
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" } }
Update the authenticated user’s profile information
Show Profile Object
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" }'