{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-post-paging-group-object-schema.json",
  "title": "PostPagingGroupObject",
  "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/PostPagingGroupObject",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "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."
    },
    "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": {
        "type": "string"
      },
      "description": "An array of people, workspace, and virtual lines IDs who can originate pages to this paging group."
    },
    "targets": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "An array of people, workspaces and virtual lines IDs will add to a paging group as paging call targets."
    },
    "directLineCallerIdName": {
      "$ref": "#/$defs/DirectLineCallerIdNameObject",
      "description": "Settings for the direct line caller ID name to be shown for this paging group."
    },
    "dialByName": {
      "type": "string",
      "description": "The name to be used for dial by name functions.  Characters of `%`,  `+`, `\\`, `\"` and Unicode characters are not allowed."
    }
  },
  "$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."
    },
    "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."
    }
  }
}