Attaching a document to a workflow - HxGN SDx - Update 63 - Administration & Configuration - Hexagon

HxGN SDx API Services Configuration

Language
English
Product
HxGN SDx
Search by Category
Administration & Configuration
SmartPlant Foundation / SDx Version
10

There are two steps to attaching a document to a workflow:

Get workflows to attach a document

You can attach a document to a workflow using the following POST request:

. . /api/v2/SDA/GetWorkflowsToAttach

The following headers can be used specifically used to get the workflows to attach a document:

Accept: application/json,application/vnd.intergraph.data+json

Content-Type: application/json

The following settings can be used in the request body of the POST:

{"ObjectObids": ["DOCUMENT_OBJECT_ID"]}

For example:

{"ObjectObids": ["6FL1000A"]}

Attach a document to the workflow

You can attach a document to a workflow using the following POST request:

. . /api/v2/SDA/AttachWorkflow

The following headers can be used specifically to attach a document to a workflow:

Accept: application/json,application/vnd.intergraph.data+json

Content-Type: application/json

The following settings can be used in the body of the POST:

{"ObjectObids": ["DOCUMENT_OBJECT_ID "],

"WorkflowObid": "WORKFLOW_OBJECT_ID "}

For example,

{"ObjectObids": ["6FL1000A"],

"WorkflowObid": "001HBOA"}