Update an existing UDF field
In order to update an existing UDF field, we would update the object that the UDF field belongs to directly. Using the previously created example of isSeasonal and Which Season that we have added to inventory items on the metrics UDF page we can update the item to have the desired values by sending a PUT request to the endpoint for the inventory item.
In this case we are working with the item with id = 200 which in InspireHealth2021 is product code VA/CCFPKG
The response shows the modified inventory item object with the new UDF fields added in.
Then we can view the item in Spire and we can see that the UDF data values that we supplied in the beginning are now reflected for that product in the Spire UI.