dockStatusId. Use this ID to call the Get Dock Status API and verify the successful import of the workflow.
To import a workflow, follow the steps below:
- Upload Files: Use the File Upload API to upload the files for the flow definition, app definition, and environment variables. This API returns unique file IDs for each file.
- Import the Workflow: Call the Import Workflows API using the retrieved file IDs along with the workflow name.
- Track Import Status: The API response returns a
dockStatusIdthat helps monitor the import progress using the Get Dock Status API.
| Method | POST |
| Endpoint | https://{host}/api/public/workflows/import |
| Content Type | application/json |
| Authorization | X-api-key - The API key used for authentication. |
Query Parameters
| PARAMETER | DESCRIPTION | TYPE | REQUIRED/OPTIONAL |
|---|---|---|---|
| host | The environment URL. For example, https://ai-for-process.domain.ai/ | String | Required |
Sample Request
Body Parameters
| PARAMETER | DESCRIPTION | TYPE | REQUIRED/OPTIONAL |
|---|---|---|---|
| workflowDataFileId | The file ID for the workflow data file. | String | Required |
| flowDataFileId | The file ID for the flow data file. | String | Required |
| envVariablesFileId | The file ID for the environment variables. | String | Optional |
| workflowName | The name of the workflow. | String | Required |
Sample Response
Response Parameters
| PARAMETER | DESCRIPTION | TYPE | SAMPLE VALUE |
|---|---|---|---|
| dockStatusId | The unique identifier to track the status of the import action. | String | e.g., ds-cxxxxxx5-dxxd-5xxf-9xxd-0xxxxx6c5xx8 |
| workflowId | The unique identifier for the workflow. | String | e.g., a-8xxxxxxe-6xxe-5xx1-8xxc-b3xxxxx80xx6 |
| jobType | The type of job being performed. | String | WORKFLOWS |
| action | The action that’s performed on the workflow/model. | String | IMPORT |
| status | The current status of the job. | String | IN_PROGRESS, SUCCESS, or FAILED |