Best practice method for building the PUT request body

Hewlett Packard Enterprise recommends the following procedure for building the PUT request body.

Procedure
  1. Use the GET method to obtain the response body for the resource you want to change.
  2. Compare the response body from the GET request to the JSON model for the PUT request. Remove all attribute value pairs that are not included in the PUT JSON model.
  3. Change the values of the attributes to match your desired configuration.
  4. Use the resulting JSON data as the request body for the PUT request.