{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knoxcall/json-schema/knoxcall-create-workflow-request-schema.json",
  "title": "CreateWorkflowRequest",
  "description": "Request body to create or update a workflow.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knoxcall-workflows-api-openapi.yml#/components/schemas/CreateWorkflowRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "definition": {
      "type": "object",
      "description": "The workflow graph. Must contain a nodes array with exactly one trigger node, and an edges array. A webhook trigger node's `data.config.authentication` credential fields may be sent as `***CONFIGURED***` to keep the stored value unchanged (see the Workflow schema); on create there is no stored value, so the field is dropped rather than persisted as the signing key.",
      "additionalProperties": true
    },
    "trigger_config": {
      "type": "object",
      "additionalProperties": true
    },
    "environment": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean",
      "default": true
    }
  },
  "required": [
    "name",
    "definition"
  ]
}