For me it was because I forgot to specified the id in the url /api/user/{missing_id} in a PATCH request. So it is not your case but could help other reader.
id
/api/user/{missing_id}