Retrieve a workflow version

Retrieve a version of a given workflow.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
path Parameters
workflowExternalId
required
string (WorkflowExternalId) <= 255 characters

Identifier for a workflow. Must be unique for the project. No trailing or leading whitespace and no null characters allowed.

version
required
string (Version) <= 255 characters

Identifier for a version. Must be unique for the workflow. No trailing or leading whitespace and no null characters allowed.

Responses
200

Specific version of a workflow

404

The response for a failed request.

get/workflows/{workflowExternalId}/versions/{version}
Request samples
from cognite.client.data_classes import WorkflowVersionId
res = client.workflows.versions.retrieve(WorkflowVersionId("my_workflow", "v1"))

res = client.workflows.versions.retrieve(
    [WorkflowVersionId("my_workflow", "v1"), WorkflowVersionId("other", "v3.2")],
    ignore_unknown_ids=True,
)
res = client.workflows.versions.retrieve([("my_workflow", "v1"), ("other", "v3.2")])

res = client.workflows.versions.retrieve("my_workflow", "v1")
Response samples
application/json
{
  • "workflowExternalId": "string",
  • "version": "string",
  • "workflowDefinition": {
    • "hash": "string",
    • "description": "string",
    • "tasks": [
      ]
    },
  • "createdTime": 1730204346000,
  • "lastUpdatedTime": 1730204346000
}