{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-get-call-park-object-schema.json",
  "title": "GetCallParkObject",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-features-call-park-api-openapi.yml#/components/schemas/GetCallParkObject",
  "type": "object",
  "required": [
    "id",
    "name",
    "recall",
    "parkOnAgentsEnabled"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "A unique identifier for the call park."
    },
    "name": {
      "type": "string",
      "description": "Unique name for the call park. The maximum length is 80."
    },
    "recall": {
      "$ref": "#/$defs/GetRecallHuntGroupObject",
      "description": "Recall options that are added to call park."
    },
    "agents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GetPersonPlaceVirtualLineCallParksObject"
      },
      "description": "People, workspaces and virtual lines that are eligible to receive calls."
    },
    "parkOnAgentsEnabled": {
      "type": "boolean",
      "description": "Whether or not the calls will be parked on agents as a destination."
    },
    "callParkExtensions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ListCPCallParkExtensionObject"
      },
      "description": "Array of call park extensions assigned to a call park."
    }
  },
  "$defs": {
    "GetPersonPlaceVirtualLineCallParksObject": {
      "type": "object",
      "required": [
        "id",
        "type",
        "email"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "ID of a person, workspace or virtual line."
        },
        "firstName": {
          "type": "string",
          "description": "First name of a person, workspace or virtual line."
        },
        "lastName": {
          "type": "string",
          "description": "Last name of a person, workspace or virtual line."
        },
        "displayName": {
          "type": "string",
          "description": "Display name of a person, workspace or virtual line."
        },
        "type": {
          "type": "string",
          "enum": [
            "PEOPLE",
            "PLACE",
            "VIRTUAL_LINE"
          ],
          "description": "Type of the person, workspace or virtual line.\n * `PEOPLE` - Indicates that this object is a user.\n * `PLACE` - Indicates that this object is a place.\n * `VIRTUAL_LINE` - Indicates that this object is a virtual line.\n"
        },
        "email": {
          "type": "string",
          "description": "Email of a person or workspace."
        },
        "numbers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GetUserNumberItemObject"
          },
          "description": "List of phone numbers of a person, workspace or virtual line."
        }
      }
    },
    "GetRecallHuntGroupObject": {
      "type": "object",
      "required": [
        "option"
      ],
      "properties": {
        "huntGroupId": {
          "type": "string",
          "description": "Alternate user which is a hunt group ID for call park recall alternate destination."
        },
        "huntGroupName": {
          "type": "string",
          "description": "Unique name for the hunt group."
        },
        "option": {
          "type": "string",
          "enum": [
            "ALERT_PARKING_USER_ONLY",
            "ALERT_PARKING_USER_FIRST_THEN_HUNT_GROUP",
            "ALERT_HUNT_GROUP_ONLY"
          ],
          "description": "Call park recall options.\n * `ALERT_PARKING_USER_ONLY` - Alert parking user only.\n * `ALERT_PARKING_USER_FIRST_THEN_HUNT_GROUP` - Alert parking user first, then hunt group.\n * `ALERT_HUNT_GROUP_ONLY` - Alert hunt group only.\n"
        }
      }
    },
    "GetUserNumberItemObject": {
      "type": "object",
      "properties": {
        "external": {
          "type": "string",
          "description": "Phone number of a person, workspace or virtual line."
        },
        "extension": {
          "type": "string",
          "description": "Extension of a person, workspace or virtual line."
        }
      }
    },
    "ListCPCallParkExtensionObject": {
      "type": "object",
      "required": [
        "id",
        "extension",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the call park extension."
        },
        "extension": {
          "type": "string",
          "description": "The extension for the call park."
        },
        "name": {
          "type": "string",
          "description": "A unique name for the call park extension."
        }
      }
    }
  }
}