Skip to main content
POST
/
workflows
Python SDK
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
    }
  ]
}

Authorizations

Authorization
string
header
required

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.

Body

application/json
items
object[]
required
Required array length: 1 element

Response

List of created workflows

items
Workflow · object[]
Last modified on April 23, 2026