Why is it required to pass most parameters to API POST/Update calls ?

jaimzj5 years ago

Whenever I need to update any objects data, say for example I want to update just a users name parameter, it is required that we send all other parameters as well while calling the POST API for user.

Example, I pass the users updated name and user id, and not send token and administrator value, the values for administrator and token is set to default value as per db or blank.

Is there any particular reason for this?

Suggestion : I feel it would be good to have it some values/parameters as mandatory and rest all as optional, where if the optional values are not sent it is not updated.