Ir al contenido

Actualizar perfil del usuario actual

PUT
/users/me
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

Media typeapplication/json
object
name
string
>= 1 characters <= 100 characters
phone
string
<= 20 characters
photoUrl
string
<= 500 characters
Example
{
"name": "Juan Pérez García",
"phone": "+5212345678901"
}

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
nullable
fatherLastName

Apellido paterno

string
motherLastName

Apellido materno

string
phone
string
nullable
preferredName

Nombre preferido

string
nullable
position

Puesto/cargo

string
nullable
photoUrl
string
nullable
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"
}