Skip to content

Update a user
Access

Request

Partially updates a user. Only provided fields are modified. Requires SITE_ADMIN:WRITE permission and RS:ADMIN_UPDATE right.

Note: Password can be changed via this endpoint. Same RGPD requirements apply.

Security
bearerAuth
Path
userIdintegerrequired

Unique identifier of the user to update.

Example:582602
Bodyapplication/jsonrequired
firstnamestring or null
lastnamestring or null
emailstring or null, (email)
passwordstring or null

New password (same RGPD requirements as create).

statusinteger or null

1 = Active, 0 = Archived

agency_idinteger or null

Change primary agency.

agencies_listArray of integers or null
group_idinteger or null
delegationboolean or null
phonestring or null
mobile_phonestring or null
genderstring or null
user_typesArray of integers or null
curl -i -X PATCH \
  https://api-doc.immo-facile.com/_mock/openapi/users/582602 \
  -H 'Authorization: Bearer <YOUR_opaque_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "phone": "+33498765000",
    "status": 1,
    "delegation": true
  }'

Responses

Updated successfully

Response
No content