cURL
curl --request PUT \ --url https://api.example.com/api/profiles/me \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "full_name": "<string>", "company_name": "<string>" } '
Update the authenticated user’s profile
Bearer <firebase_id_token>
curl -X PUT https://api.sari-platform.com/api/profiles/me \ -H "Authorization: Bearer <firebase_id_token>" \ -H "Content-Type: application/json" \ -d '{ "full_name": "John Smith", "company_name": "New Company" }'
{ "id": "550e8400-e29b-41d4-a716-446655440000", "email": "user@example.com", "full_name": "John Smith", "company_name": "New Company", "role": "client", "registration_status": "approved", "client_id": "client_abc123", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-17T14:00:00Z" }