Actualizar perfil del usuario actual
PUT
/users/me
const url = 'https://api.dev.lade.com.mx/users/me';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Juan Pérez García","phone":"+5212345678901"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.dev.lade.com.mx/users/me \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Juan Pérez García", "phone": "+5212345678901" }'Actualiza el perfil del usuario autenticado
Authorizations
Sección titulada «Authorizations»Request Bodyrequired
Sección titulada «Request Bodyrequired»Media typeapplication/json
object
name
string
phone
string
photoUrl
string
Example
{ "name": "Juan Pérez García", "phone": "+5212345678901"}Responses
Sección titulada «Responses»Perfil actualizado
Media typeapplication/json
Perfil de usuario como lo devuelve GET /users/me
object
id
string format: uuid
email
string format: email
name
Nombre(s)
string
middleName
Segundo nombre
string
fatherLastName
Apellido paterno
string
motherLastName
Apellido materno
string
phone
string
preferredName
Nombre preferido
string
position
Puesto/cargo
string
photoUrl
string
createdAt
string format: date-time
updatedAt
string format: date-time
Examplegenerated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "email": "hello@example.com", "name": "example", "middleName": "example", "fatherLastName": "example", "motherLastName": "example", "phone": "example", "preferredName": "example", "position": "example", "photoUrl": "example", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z"}Solicitud inválida
Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{ "error": "Validation failed", "field": "email", "message": "Invalid email format"}No autenticado
Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{ "error": "Unauthorized", "message": "Invalid or expired token"}