This request provides an example for updating a property of a vessel. You can follow this procedure and modify the request to update any suitable property of any item type.
-
Select the request 07.01 Update Vessel Properties.
https://apiservername.domain.com/WebApi/SPID/V2/Sites('WEBAPISITE001')/Plants('PLANT001')/
Vessels('B6D99B6451A547499082C5520C90BC20')The Header field of the update script must contain the key 'If-Match' with value * or some other suitable value.
-
Ensure that the Body field of the update script contains the parameter for the property you want to update (the example shows the script for updating a vessel's 'Tag Prefix' property):
{
"TagPrefix": "CCC"
}
-
Modify the value of the item's property as required.
-
Click Send.
To view the results of the update, run the following GET request:
https://apiservername.domain.com/WebApi/SPID/V2/Sites('WEBAPISITE001')/Plants('PLANT001')/
Vessels('B6D99B6451A547499082C5520C90BC20')/Com.Ingr.SPID.V2.WEBAPISITE001.PLANT001.Vessel
?$select=Id,ItemTag,TagSuffix,TagPrefix,Description