- 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.
Playground
POST
Endpoint: 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. |
Input Parameters
For thedata object 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:booleandatedateTimedecimaldurationnumberobjectpersondatasetgrouptexttime
object type inputs.Example
HTTP Response
Returns the information about the instance of the Workflow that was just started. Thestatus 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.
Playground
POST
Endpoint: /api/workflow/v1/instances/${instanceId}/cancel
Path Parameters:
id- The ID of the Workflow instance to cancel- String
- Required
Changing a Workflow’s Permissions
Changes the permissions of a workflow.
Playground
POST
Endpoint: 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. |