{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-get-paging-group-object-schema.json",
  "title": "GetPagingGroupObject",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-features-paging-group-api-openapi.yml#/components/schemas/GetPagingGroupObject",
  "type": "object",
  "required": [
    "id",
    "enabled",
    "name",
    "language",
    "languageCode",
    "originatorCallerIdEnabled"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "A unique identifier for the paging group."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether or not the paging group is enabled."
    },
    "name": {
      "type": "string",
      "description": "Unique name for the paging group. Minimum length is 1. Maximum length is 30."
    },
    "phoneNumber": {
      "type": "string",
      "description": "Paging group phone number. Minimum length is 1. Maximum length is 23. Either `phoneNumber` or `extension` is mandatory."
    },
    "extension": {
      "type": "string",
      "description": "Paging group extension. Minimum length is 2. Maximum length is 10. Either `phoneNumber` or `extension` is mandatory."
    },
    "tollFreeNumber": {
      "type": "boolean",
      "description": "Flag to indicate toll free number."
    },
    "language": {
      "type": "string",
      "description": "Paging language. Minimum length is 1. Maximum length is 40."
    },
    "languageCode": {
      "type": "string",
      "description": "Language code."
    },
    "firstName": {
      "type": "string",
      "description": "First name that displays when a group page is performed. Minimum length is 1. Maximum length is 64. This field has been deprecated. Please use `directLineCallerIdName` and `dialByName` instead."
    },
    "lastName": {
      "type": "string",
      "description": "Last name that displays when a group page is performed. Minimum length is 1. Maximum length is 64. This field has been deprecated. Please use `directLineCallerIdName` and `dialByName` instead."
    },
    "originatorCallerIdEnabled": {
      "type": "boolean",
      "description": "Determines what is shown on target users caller ID when a group page is performed. If true shows page originator ID."
    },
    "originators": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GetPagingGroupAgentObject"
      },
      "description": "An array of people, workspaces and virtual lines ID's who may originate pages to this paging group."
    },
    "targets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GetPagingGroupAgentObject"
      },
      "description": "An array of people, workspaces and virtual lines ID's that are added to paging group as paging call targets."
    },
    "directLineCallerIdName": {
      "$ref": "#/$defs/DirectLineCallerIdNameObject",
      "description": "Settings for the direct line caller ID name to be shown for this Group Paging."
    },
    "dialByName": {
      "type": "string",
      "description": "The name to be used for dial by name functions."
    }
  },
  "$defs": {
    "DirectLineCallerIdNameObject": {
      "type": "object",
      "properties": {
        "selection": {
          "$ref": "#/$defs/SelectionObject",
          "description": "The selection of the direct line caller ID name. Defaults to `DISPLAY_NAME`."
        },
        "customName": {
          "type": "string",
          "description": "The custom direct line caller ID name. Required if `selection` is set to `CUSTOM_NAME`."
        }
      },
      "description": "Settings for the direct line caller ID name to be shown for this workspace."
    },
    "GetPagingGroupAgentObject": {
      "type": "object",
      "required": [
        "id",
        "type"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Agents ID."
        },
        "firstName": {
          "type": "string",
          "description": "Agent's first name. Minimum length is 1. Maximum length is 64."
        },
        "lastName": {
          "type": "string",
          "description": "Agent's last name. Minimum length is 1. Maximum length is 64."
        },
        "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 person.\n * `PLACE` - Indicates that this object is a workspace, formerly known as a place.\n * `VIRTUAL_LINE` - Indicates that this object is a virtual line.\n"
        },
        "phoneNumber": {
          "type": "string",
          "description": "Agent's phone number. Minimum length is 1. Maximum length is 23. Either phoneNumber or extension is mandatory."
        },
        "extension": {
          "type": "string",
          "description": "Agent's extension. Minimum length is 2. Maximum length is 10. Either phoneNumber or extension is mandatory."
        },
        "routingPrefix": {
          "type": "string",
          "description": "Routing prefix of location."
        },
        "esn": {
          "type": "string",
          "description": "Routing prefix + extension of a person or workspace."
        }
      }
    },
    "SelectionObject": {
      "type": "string",
      "enum": [
        "CUSTOM_NAME",
        "DISPLAY_NAME"
      ],
      "description": " * `DISPLAY_NAME` - When this option is selected, `displayName` is to be shown for this workspace.\n * `CUSTOM_NAME` - When this option is selected, `customName` is to be shown for this workspace."
    }
  }
}