PUT /api/profile 🔒 Auth Required

Update the current user's profile

📋 Endpoint Details

Method: PUT
Path: /api/profile
Authentication: Required - Include Authorization: Bearer <token> header

📤 Request Body

{ "fullName": "string (optional)", "email": "string (optional)", "phone": "string (optional)", "city": "string (optional)", "state": "string (optional)" }

📥 Response Example

{ "success": true, "message": "Profile updated successfully", "data": {} }

💡 Usage Tips

cURL Example:

curl -X PUT \ http://localhost:3000/api/profile \ -H "Content-Type: application/json" \ -d '{ "fullName": "string (optional)", "email": "string (optional)", "phone": "string (optional)", "city": "string (optional)", "state": "string (optional)" }' \ -H "Authorization: Bearer YOUR_TOKEN_HERE"
← Back to Home