{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opper/json-schema/opper-dynamic-route-draft-request-schema.json",
  "title": "DynamicRouteDraftRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opper-management-api-openapi.yml#/components/schemas/DynamicRouteDraftRequest",
  "properties": {
    "description": {
      "description": "New description. Omit to leave it unchanged.",
      "type": "string"
    },
    "graph": {
      "description": "Routing graph object with elements. Each node has id, type, outputs mapping output names to {elementId: targetID}, and optional properties. Include START/start and END/end. Supported types: start, end, model, pool, conditional, percentage, classifier, observe. Omit graph on create to seed a default; copy its returned draft.graph to customize. See tool description for node properties and topology.",
      "properties": {
        "elements": {
          "items": {
            "properties": {
              "id": {
                "type": "string"
              },
              "outputs": {
                "additionalProperties": {
                  "properties": {
                    "elementId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "elementId"
                  ],
                  "type": "object"
                },
                "type": "object"
              },
              "properties": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "type",
              "outputs"
            ],
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "elements"
      ],
      "type": "object"
    },
    "layout": {
      "description": "Editor canvas positions keyed by element id. Opaque to the gateway.",
      "type": "object"
    }
  },
  "type": "object"
}