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 with selector=writable to obtain the writable (mutable) configuration attributes for the resource you want to change.

    For example:

    GET "https://192.0.2.5/rest/v10.04/system/interfaces/vlan200?selector=writable"
  2. Change the values of the attributes to match your wanted configuration.

    Any attribute you do not include in the request body will be set to its default value, which could be empty.

  3. Use the resulting JSON data as the request body for the PUT request.