{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/spendline-ai/json-schema/spendline-ai-reroute-schema.json",
  "title": "Reroute",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/spendline-ai-openapi.json#/components/schemas/Reroute",
  "type": "object",
  "required": [
    "from_model",
    "to_model"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "from_model": {
      "type": "string"
    },
    "to_model": {
      "type": "string",
      "description": "Must be routable and must differ from from_model."
    },
    "rollout_percent": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 100
    },
    "scope": {
      "type": [
        "object",
        "null"
      ],
      "description": "Optional. Omit for an account-wide rule.",
      "properties": {
        "agent_id": {
          "type": "string"
        },
        "customer_id": {
          "type": "string"
        }
      }
    }
  }
}