from cognite.client.data_classes import WorkflowUpsert
wf = WorkflowUpsert(external_id="my_workflow", description="my workflow description")
res = client.workflows.upsert(wf)
wf2 = WorkflowUpsert(external_id="other", data_set_id=123)
res = client.workflows.upsert([wf, wf2]){
"items": [
{
"externalId": "<string>",
"createdTime": 1730204346000,
"lastUpdatedTime": 1730204346000,
"description": "<string>",
"dataSetId": 4503599627370496,
"maxConcurrentExecutions": 5000
}
]
}Required capabilities:
workflowOrchestrationACL:WRITE
Create or update a workflow. Limited to a single workflow per request.
from cognite.client.data_classes import WorkflowUpsert
wf = WorkflowUpsert(external_id="my_workflow", description="my workflow description")
res = client.workflows.upsert(wf)
wf2 = WorkflowUpsert(external_id="other", data_set_id=123)
res = client.workflows.upsert([wf, wf2]){
"items": [
{
"externalId": "<string>",
"createdTime": 1730204346000,
"lastUpdatedTime": 1730204346000,
"description": "<string>",
"dataSetId": 4503599627370496,
"maxConcurrentExecutions": 5000
}
]
}Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
1 elementShow child attributes
List of created workflows
Show child attributes
Was this page helpful?