Using a JSON merge-patch request to update attributes of an element

You can use a JSON merge-patch request to update specific attributes of an element.

You must include Accept: application/merge-patch+json in the header of the request.

Example: The following request updates the IP address of the specified Host element to 17.44.1.72:

PATCH …/elements/host/1566 with payload { "address": "17.44.1.72" } 

Example: The following request updates the secondary IP addresses of the specified Host element to 1.1.1.1, 2.2.2.2:

PATCH …/elements/host/1445 with payload { "secondary": ["1.1.1.1", "2.2.2.2"] } 

Example: The following request removes the secondary IP addresses from the specified Host element:

PATCH …/elements/host/1445 with payload { "secondary": null }