Met à jour les informations d'un utilisateur.
Restrictions:
- L'email ne peut pas être modifié via cette route
- Le mot de passe ne peut pas être modifié via cette route (utiliser /auth/password/reset)
- Déclenche un événement UPDATE_USER
PATCH
/user/{uid}
curl \
--request PATCH 'https://wuro.pro/api/v3.2/user/{uid}' \
--header "X-APP-ID: $API_KEY" \
--header "X-APP-SECRET: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"first_name":"string","last_name":"string","title":"string","gender":"H","birthdate":"2025-05-04T09:42:00Z","phone":{"number":"string"},"address":{"street":"string","street_end":"string","zip_code":"string","city":"string","country":"string"},"avatar":"string","personal_email":"hello@example.com","professional_email":"hello@example.com","personal_phone_fixe":"string","professional_phone":"string","professional_phone_fixe":"string","social_secu_number":"string"}'
Request examples
{
"first_name": "string",
"last_name": "string",
"title": "string",
"gender": "H",
"birthdate": "2025-05-04T09:42:00Z",
"phone": {
"number": "string"
},
"address": {
"street": "string",
"street_end": "string",
"zip_code": "string",
"city": "string",
"country": "string"
},
"avatar": "string",
"personal_email": "hello@example.com",
"professional_email": "hello@example.com",
"personal_phone_fixe": "string",
"professional_phone": "string",
"professional_phone_fixe": "string",
"social_secu_number": "string"
}
Response examples (200)
{
"updatedUser": {
"_id": "string",
"email": "hello@example.com",
"first_name": "string",
"last_name": "string",
"avatar": "string",
"state": "inactive",
"positions": [
"string"
],
"phone": {
"number": "string"
},
"address": {
"street": "string",
"street_end": "string",
"zip_code": "string",
"city": "string",
"country": "string"
},
"birthdate": "2025-05-04T09:42:00Z",
"gender": "H",
"terms_of_sale_signature": "2025-05-04T09:42:00Z",
"createdAt": "2025-05-04T09:42:00Z",
"updatedAt": "2025-05-04T09:42:00Z"
}
}