Update the authenticated user profile
cURL
curl --request PUT \ --url https://api.example.com/auth/profile \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "email": "<string>" } '
{ "id": 123, "name": "<string>", "email": "<string>", "role": "<string>", "createdAt": "<string>" }
Authorization: Bearer <your_token>
{ "name": "Jane Doe", "email": "[email protected]" }
{ "name": "Jane Doe" }
{ "id": 1, "name": "Jane Doe", "email": "[email protected]", "role": "customer", "createdAt": "2026-03-06T10:30:00.000Z" }
{ "error": "No autorizado" }
{ "error": "Usuario no encontrado" }
{ "error": "Validation failed", "details": [ "email must be a valid email" ] }
{ "error": "El email ya está en uso" }
role