v5

OpenAPI 3.1.02026-07-31129337684.6 KB
Workflow Templates

Create Workflow Template

Endpoint to create a new workflow template.

post/workflows/v1/templates

Request body

access_level'personal' | 'team' | 'system'

Enum representing different access control levels.

access_listPydanticObjectId[] nullable

List of user IDs or team IDs that have access to this node library

logical_idstring nullable

Unique identifier for the workflow template

workflow_idstring nullable

The ID of the workflow this template belongs to

Example request

{
  "access_list": [
    "5eb7cf5a86d9755df3a6c593"
  ],
  "workflow_id": "5eb7cf5a86d9755df3a6c593"
}

Response

Successful Response

Example response

{
  "workflow_template": {
    "teamId": "5eb7cf5a86d9755df3a6c593",
    "createdBy": "5eb7cf5a86d9755df3a6c593",
    "updatedBy": "5eb7cf5a86d9755df3a6c593",
    "_id": "5eb7cf5a86d9755df3a6c593",
    "workflow_template_config": {
      "access_list": [
        "5eb7cf5a86d9755df3a6c593"
      ]
    }
  }
}