You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When updating a user's profile via the users.update API endpoint, providing a customFields object causes a complete overwrite of the user's existing custom fields. This results in unintended data loss for any fields not explicitly included in the payload.
The expected behavior is a merge (patch) operation, where only the specified keys are updated, and existing keys remain untouched.
Steps to reproduce
Enable Custom Fields in Administration -> Accounts -> Registration.
Create two custom fields (e.g., role and team).
Set initial values for a user: { "role": "Developer", "team": "Red" }.
Send a POST request to api/v1/users.update with the following payload (updating only one field):