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"}