{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/webex/main/json-schema/webex-dial-plan-schema.json",
  "title": "DialPlan",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-call-routing-api-openapi.yml#/components/schemas/DialPlan",
  "type": "object",
  "required": [
    "id",
    "name",
    "routeId",
    "routeName",
    "routeType"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the dial plan."
    },
    "name": {
      "type": "string",
      "description": "A unique name for the dial plan."
    },
    "routeId": {
      "type": "string",
      "description": "ID of route type associated with the dial plan."
    },
    "routeName": {
      "type": "string",
      "description": "Name of route type associated with the dial plan."
    },
    "routeType": {
      "$ref": "#/$defs/RouteType",
      "description": "Route Type associated with the dial plan."
    }
  },
  "$defs": {
    "RouteType": {
      "type": "string",
      "enum": [
        "ROUTE_GROUP",
        "TRUNK"
      ],
      "description": " * `ROUTE_GROUP` - Route group must include at least one trunk with a maximum of 10 trunks per route group.\n * `TRUNK` - Connection between Webex Calling and the premises.\n"
    }
  }
}