Create a new workflow from a YAML specification. The specification is parsed and validated before the workflow is persisted.
Optionally, the workflow can be scheduled and/or triggered immediately upon creation
using the trigger_immediately and schedule_immediately request fields.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The workflow specification in YAML format.
"document:\n dsl: '1.0.0'\n namespace: test\n name: test-workflow\n version: '1.0.0'\n do:\n - createView:\n call: CreateMaterializedViewIfNotExists\n with:\n nql: \"SELECT track_id FROM company_data.workflow_input_dataset\"\n datasetName: workflow_dataset_test12\n - refreshView:\n call: RefreshMaterializedView\n with:\n datasetName: workflow_dataset_test12\n - insertData:\n call: ExecuteDml\n with:\n nql: \"INSERT INTO company_data.workflow_input_dataset (track_id) VALUES ('test')\n"
The data plane to associate the workflow with.
"d1e2f3a4-b5c6-7890-abcd-ef1234567890"
If true, the workflow will be triggered immediately after creation.
false
If true, the workflow schedule will be created immediately after creation.
false
Tags that describe the workflow.
The created workflow.
Unique identifier for a workflow.
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
The name of the workflow, extracted from the specification.
"my-etl-workflow"
The workflow specification in YAML format.
"document:\n dsl: '1.0.0'\n namespace: test\n name: test-workflow\n version: '1.0.0'\n do:\n - createView:\n call: CreateMaterializedViewIfNotExists\n with:\n nql: \"SELECT track_id FROM company_data.workflow_input_dataset\"\n datasetName: workflow_dataset_test12\n - refreshView:\n call: RefreshMaterializedView\n with:\n datasetName: workflow_dataset_test12\n - insertData:\n call: ExecuteDml\n with:\n nql: \"INSERT INTO company_data.workflow_input_dataset (track_id) VALUES ('test')\n"
The data plane this workflow is associated with.
"d1e2f3a4-b5c6-7890-abcd-ef1234567890"
The company that owns this workflow.
100
ISO-8601 timestamp of when the workflow was created.
"2025-01-15T10:30:00Z"
The ID of the user who created this workflow.
20
ISO-8601 timestamp of when the workflow was last updated.
"2025-01-15T10:30:00Z"
The current status of the workflow.
active, archived "active"
Tags that describe the workflow.
ISO-8601 timestamp of when the workflow was archived, or null if active.
null
The run ID if the workflow was triggered immediately upon creation.
"b7e3f1a2-4c5d-6e7f-8a9b-0c1d2e3f4a5b"