Start an execution of a specific version of a workflow.
Information about the workflow execution
from cognite.client.data_classes import WorkflowTask, FunctionTaskParameters task = WorkflowTask( external_id="my_workflow-task1", parameters=FunctionTaskParameters( external_id="cdf_deployed_function:my_function", data={"workflow_data": "${workflow.input}"})) res = client.workflows.executions.run("foo", "1") res = client.workflows.executions.run("foo", "1", input={"a": 1, "b": 2}) import os from cognite.client.data_classes import ClientCredentials credentials = ClientCredentials("my-client-id", os.environ["MY_CLIENT_SECRET"]) res = client.workflows.executions.run("foo", "1", client_credentials=credentials)
{- "id": "059edaa4-a17a-4102-910e-2c3591500cce",
- "workflowExternalId": "string",
- "version": "string",
- "status": "RUNNING",
- "engineExecutionId": "stringstringstringstringstringstring",
- "createdTime": 1730204346000,
- "startTime": 1730204346000,
- "endTime": 1730204346000,
- "reasonForIncompletion": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}