{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-purview/json-schema/microsoft-purview-workflow-create-or-update-command-schema.json",
  "title": "WorkflowCreateOrUpdateCommand",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-purview-workflow-api-openapi.yml#/components/schemas/WorkflowCreateOrUpdateCommand",
  "type": "object",
  "properties": {
    "triggers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkflowTrigger"
      }
    },
    "name": {
      "type": "string"
    },
    "isEnabled": {
      "type": "boolean"
    },
    "description": {
      "type": "string"
    },
    "actionDag": {
      "type": "object"
    }
  },
  "$defs": {
    "WorkflowTrigger": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "when_term_creation_is_requested",
            "when_term_deletion_is_requested",
            "when_term_update_is_requested",
            "when_data_access_grant_is_requested",
            "when_asset_update_is_requested"
          ]
        },
        "underGlossaryHierarchy": {
          "type": "string"
        },
        "underCollection": {
          "type": "string"
        }
      }
    }
  }
}