Best practice method for building the PUT request body
Hewlett Packard Enterprise recommends the following procedure for building the PUT request body.
Procedure
- Use the GET method to obtain the response body for the resource you want to change.
- 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.
- Change the values of the attributes to match your desired configuration.
- Use the resulting JSON data as the request body for the PUT request.