A profile endpoint receives a JSON object. Spreading that object into a database update gives the caller control over every matching property, including properties the form never displayed. A member can add a role, a tenant identifier or a verified flag to an otherwise ordinary edit.
Build a new update object containing only the fields this operation allows. That list belongs to the server. Deleting a known password field from a copied object still leaves other privileged properties open. An empty patch should preserve the record, and a valid profile edit should still work when it arrives alongside an unwanted property. These labs return the updated fictional record so you can inspect the stored result. They model the update boundary; they don't replace a real request schema, persistence transaction or response projection.
Keep privileged account properties out of profile update patches.