SetDiscussion
Adds discussions to assets
Defined in: setDiscussion.js.
Constructor Attributes | Constructor Name and Description |
---|---|
SetDiscussion(data, verbose, fields)
For each asset in "data", this endpoint writes the text to the discussion of the asset
|
Class Detail
SetDiscussion(data, verbose, fields)
For each asset in "data", this endpoint writes the text to the discussion of the asset
- Parameters:
- data
- an array of assets and the discussion to add. [{"id":123456,"text":"the message to add to the discussion","user":"theUserName"}, ...]
- verbose Optional, Default: false
- Setting this to true will collect a variety of default values for each asset.
- fields Optional
- An array of field id's to collect the values for each asset
- Returns:
- [{assetInfo}, ... ]
/wf/restapi/v2/setDiscussion Parameters: data=[{"id":201629375,"text":"the message to add to the discussion","user":"root"}] Response: [ { "discussion": [ { "date": "Mon, 16 Oct 2017 14:53:23 -0500", "endTime": "-1.0", "globalAdminEdited": "false", "startTime": "-1.0", "text": "Previous Comment", "dateEdited": "Mon, 16 Oct 2017 14:53:23 -0500", "page": "1", "user": "root", "uid": "5F9A56F8-4403-7875-EFE7-70FDB94F072A" }, { "date": "2017-10-16T19:53:55.147Z", "page": "1", "text": "the message to add to the discussion", "user": "root", "uid": "F4CA822B-B6E3-4D77-B77A-97393BE84846" } ], "id": 201629375 } ]