We have a list item which also contains user field (single user). On our app customer is able to clear peoplepicker thus requiring this filed to be updated -> cleared. However even we have logic to do that (using value -1 for user ID), this is creating a problem on list item itself. When you later want to check it you can see this (view item):
As you can see, it will generate some kind of "empty" user. However when you want to edit item you'll get typical "Sorry, something went wrong" SharePoint page. I also tried to compare values when gathering back the data. When you get item and field was "cleared" using normal SP edit page, response from API call is (an empty 'link' element):
However with this -1 value it looks like this:
Does anyone have experience with this and possible solution please? Or it is just another not well done functionality in SharePoint? We tried other values like 0, null, or just empty string. However error returned from server is clear, it expects Int32 value. Update is done by using PATCH method calling standard getItemByStringId(itemId).

