- An external Domo Instance
- An environment from outside of Domo
- A script running in Domo’s Jupyter Workspaces
Start a Workflow
Starts a Workflow and returns details about the Workflow Instance. Method:
POSTEndpoint:
https://{instance}.domo.com/api/workflow/v1/instances/message
Request Body
| Property Name | Type | Required | Description |
|---|---|---|---|
| messageName | String | Required | Message passed to start the Workflow Instance, usually "Start {workflow_name} |
| version | String | Required | The version identifier e.g. 0.0.1 |
| modelId | String | Required | The id of the Workflow |
| data | Object | Required | The start parameters required to kick off the Workflow. |
A simple example of a workflow that takes two numerical inputs, might look like the following:Input Parameters
For thedataobject containing the start parameters required to run the workflow, be careful to structure this object so it is consistent with the input types that you’ve already defined in your workflow. The valid input type options are:You may pass in lists containing the above types and may also nest additional information in
booleandatedateTimedecimaldurationnumberobjectpersondatasetgrouptexttimeobjecttype inputs.
status property can take the values null, IN_PROGRESS, CANCELED, or COMPLETED.
A status of null might be valid. It just means the workflow hasn’t reported back as started yet.
Canceling a Workflow
Cancels an in progress Workflow. If you are unfamiliar with how to authenticate against Product APIs, please see this overview page. Method:
POSTEndpoint:
/api/workflow/v1/instances/${instanceId}/cancelPath Parameters:
id- The ID of the Workflow instance to cancel- String
- Required
Changing a Workflow’s Permissions
Changes the permissions of a workflow. Method:
POSTEndpoint:
https://{instance}.domo.com/api/workflow/v1/models/${modelId}/permissions
Request Body
| Property Name | Type | Required | Description |
|---|---|---|---|
| modelId | String | Required | The id of the workflow model. |