Update a comment with an attachment
- Last UpdatedMay 04, 2022
- 1 minute read
|
Description |
Update a comment with an attachment uploaded via Upload a File. |
|
Method |
POST |
|
URL |
https://online.wonderware.[DOMAINSUFFIX]/apis/Historian/V2/Comments |
|
Authorization |
Bearer token |
|
Content-Type |
application/json |
|
Notes |
Files specified with "Link" can optionally be stored in a specific location on the solution when uploaded with Upload a File. In the example body below, "DisabledFan2" shows the format for linking to a file stored in a specific location. |
|
Example Body |
{ "Upsert": [ { "Type": "ProcessValue", "Values": [ { "Text": "Malfunctioning Fan", "Attachments": [ { "Label": "DisabledFan1", "Link": "file://DisabledFan1.png" }, { "Label": "DisabledFan2", "Link": "file://Chicago/Pump1/DisabledFan2.png" } ], "FQN": "CHICAGO.PUMP1.FAN", "DateTime": "2020-06-24T10:59:45.000Z", "SharedMode": "Private", "Location": "/", "Type": "ProcessValue" } ] } ] } |