{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-modify-auto-attendant-object-schema.json",
  "title": "ModifyAutoAttendantObject",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-features-auto-attendant-api-openapi.yml#/components/schemas/ModifyAutoAttendantObject",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Unique name for the auto attendant."
    },
    "phoneNumber": {
      "type": "string",
      "description": "Auto attendant phone number.  Either `phoneNumber` or `extension` is mandatory."
    },
    "extension": {
      "type": "string",
      "description": "Auto attendant extension.  Either `phoneNumber` or `extension` is mandatory."
    },
    "firstName": {
      "type": "string",
      "description": "First name defined for an auto attendant. This field has been deprecated. Please use `directLineCallerIdName` and `dialByName` instead."
    },
    "lastName": {
      "type": "string",
      "description": "Last name defined for an auto attendant. This field has been deprecated. Please use `directLineCallerIdName` and `dialByName` instead."
    },
    "alternateNumbers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AlternateNumbersObject"
      },
      "description": "Alternate numbers defined for the auto attendant."
    },
    "languageCode": {
      "type": "string",
      "description": "Announcement language code for the auto attendant."
    },
    "businessSchedule": {
      "type": "string",
      "description": "Business hours defined for the auto attendant."
    },
    "holidaySchedule": {
      "type": "string",
      "description": "Holiday defined for the auto attendant."
    },
    "extensionDialing": {
      "type": "string",
      "enum": [
        "ENTERPRISE",
        "GROUP"
      ],
      "description": "Extension dialing setting. If the values are not set default will be set as `ENTERPRISE`."
    },
    "nameDialing": {
      "type": "string",
      "enum": [
        "ENTERPRISE",
        "GROUP"
      ],
      "description": "Name dialing setting. If the values are not set default will be set as `ENTERPRISE`."
    },
    "timeZone": {
      "type": "string",
      "description": "Time zone defined for the auto attendant."
    },
    "businessHoursMenu": {
      "$ref": "#/$defs/HoursMenuObject",
      "description": "Business hours menu defined for the auto attendant."
    },
    "afterHoursMenu": {
      "$ref": "#/$defs/HoursMenuObject",
      "description": "After hours menu defined for the auto attendant."
    },
    "directLineCallerIdName": {
      "$ref": "#/$defs/DirectLineCallerIdNameObjectForPut",
      "description": "Settings for the direct line caller ID name to be shown for this auto attendant."
    },
    "dialByName": {
      "type": "string",
      "description": "Sets or clears the name to be used for dial by name functions. To clear the `dialByName`, the attribute must be set to null or empty string. Characters of `%`,  `+`, `\\`, `\"` and Unicode characters are not allowed."
    }
  },
  "$defs": {
    "ActionToBePerformedObject": {
      "type": "object",
      "required": [
        "action",
        "greeting"
      ],
      "properties": {
        "action": {
          "type": "string",
          "enum": [
            "PLAY_MESSAGE_AND_DISCONNECT",
            "TRANSFER_WITHOUT_PROMPT",
            "TRANSFER_WITH_PROMPT",
            "TRANSFER_TO_OPERATOR",
            "TRANSFER_TO_MAILBOX",
            "DISCONNECT"
          ],
          "description": "Action to perform after the retry attempt is reached.\n * `PLAY_MESSAGE_AND_DISCONNECT` - Plays a recorded message and then disconnects the call.\n * `TRANSFER_WITHOUT_PROMPT` - Transfers the call to the specified number, without playing a transfer prompt.\n * `TRANSFER_WITH_PROMPT` - Plays the message and then transfers the call to the specified number.\n * `TRANSFER_TO_OPERATOR` - Plays the message and then transfers the call to the specified operator number.\n * `TRANSFER_TO_MAILBOX` - Transfers the call to the configured mailbox, without playing a transfer prompt.\n * `DISCONNECT` - Disconnect the call.\n"
        },
        "greeting": {
          "type": "string",
          "enum": [
            "DEFAULT",
            "CUSTOM"
          ],
          "description": "Greeting type is defined when `action` is set to `PLAY_MESSAGE_AND_DISCONNECT`.\n * `DEFAULT` - Play default greeting.\n * `CUSTOM` - Play custom greeting.\n"
        },
        "audioAnnouncementFile": {
          "$ref": "#/$defs/AudioAnnouncementFileGetObject",
          "description": "Pre-configured announcement audio files when `action` is set to `PLAY_MESSAGE_AND_DISCONNECT` and `greeting` is set to `CUSTOM`."
        },
        "transferCallTo": {
          "type": "string",
          "description": "Transfer call to the specified number when `action` is set to `TRANSFER_WITH_PROMPT`, `TRANSFER_WITHOUT_PROMPT` and `TRANSFER_TO_OPERATOR` and `TRANSFER_TO_MAILBOX`."
        }
      }
    },
    "AlternateNumbersObject": {
      "type": "object",
      "required": [
        "phoneNumber",
        "ringPattern"
      ],
      "properties": {
        "phoneNumber": {
          "type": "string",
          "description": "Phone number defined as alternate number."
        },
        "tollFreeNumber": {
          "type": "boolean",
          "description": "Flag to indicate if auto attendant number is toll-free number."
        },
        "ringPattern": {
          "type": "string",
          "enum": [
            "NORMAL",
            "LONG_LONG",
            "SHORT_SHORT_LONG",
            "SHORT_LONG_SHORT"
          ],
          "description": "Ring pattern that will be used for the alternate number.\n * `NORMAL` - Normal incoming ring pattern.\n * `LONG_LONG` - Incoming ring pattern of two long rings.\n * `SHORT_SHORT_LONG` - Incoming ring pattern of two short rings, followed by a short ring.\n * `SHORT_LONG_SHORT` - Incoming ring pattern of a short ring, followed by a long ring, followed by a short ring.\n"
        }
      }
    },
    "AudioAnnouncementFileGetObject": {
      "type": "object",
      "required": [
        "id",
        "fileName",
        "mediaFileType",
        "level"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "A unique identifier for the announcement."
        },
        "fileName": {
          "type": "string",
          "description": "Audio announcement file name."
        },
        "mediaFileType": {
          "type": "string",
          "enum": [
            "WAV"
          ],
          "description": "Audio announcement file type.\n * `WAV` - WAV File Extension.\n"
        },
        "level": {
          "type": "string",
          "enum": [
            "ORGANIZATION",
            "LOCATION"
          ],
          "description": "Audio announcement file type location.\n * `ORGANIZATION` - Specifies this audio file is configured across the organization.\n * `LOCATION` - Specifies this audio file is configured across the location.\n"
        }
      }
    },
    "AudioAnnouncementFileObject": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "A unique identifier for the [announcement](/docs/api/v1/features-announcement-repository). `name`, `mediaFileType`, `level` are mandatory if `id` is not provided for uploading an announcement. If all four fields are provided, file with given `id` is used and other fields are ignored."
        },
        "fileName": {
          "type": "string",
          "description": "Audio announcement file name."
        },
        "mediaFileType": {
          "type": "string",
          "enum": [
            "WAV"
          ],
          "description": "Audio announcement file type.\n * `WAV` - WAV File Extension.\n"
        },
        "level": {
          "type": "string",
          "enum": [
            "ORGANIZATION",
            "LOCATION"
          ],
          "description": "Audio announcement file type location.\n * `ORGANIZATION` - Specifies this audio file is configured across the organization.\n * `LOCATION` - Specifies this audio file is configured across the location.\n"
        }
      }
    },
    "CallTreatmentObject": {
      "type": "object",
      "properties": {
        "retryAttemptForNoInput": {
          "type": "string",
          "enum": [
            "NO_REPEAT",
            "ONE_TIME",
            "TWO_TIMES",
            "THREE_TIMES"
          ],
          "description": "Number of times to repeat the Welcome greeting when the user does not provide an input. By default, NO_REPEAT is set.\n * `NO_REPEAT` - Announcement will not be repeated.\n * `ONE_TIME` - Repeat the announcement once.\n * `TWO_TIMES` - Repeat the announcement twice.\n * `THREE_TIMES` - Repeat the announcement thrice.\n"
        },
        "noInputTimer": {
          "type": "string",
          "description": "Interval the Auto Attendant service waits before timing out. By default, 10 seconds. Min value is 1, and max value is 60."
        },
        "actionToBePerformed": {
          "$ref": "#/$defs/ActionToBePerformedObject",
          "description": "Action to perform after the retry attempt is reached."
        }
      }
    },
    "DirectLineCallerIdNameObjectForPut": {
      "type": "object",
      "properties": {
        "selection": {
          "$ref": "#/$defs/SelectionObject",
          "description": "The selection of the direct line caller ID name."
        },
        "customName": {
          "type": "string",
          "description": "Sets or clears the custom direct line caller ID name.  To clear the `customName`, the attribute must be set to null or empty string. Required if `selection` is set to `CUSTOM_NAME`."
        }
      },
      "description": "Settings for the direct line caller ID name to be shown for this workspace."
    },
    "HoursMenuObject": {
      "type": "object",
      "required": [
        "greeting",
        "extensionEnabled",
        "keyConfigurations"
      ],
      "properties": {
        "greeting": {
          "type": "string",
          "enum": [
            "DEFAULT",
            "CUSTOM"
          ],
          "description": "Greeting type defined for the auto attendant."
        },
        "extensionEnabled": {
          "type": "boolean",
          "description": "Flag to indicate if auto attendant extension is enabled or not."
        },
        "audioAnnouncementFile": {
          "$ref": "#/$defs/AudioAnnouncementFileObject",
          "description": "Announcement Audio File details."
        },
        "keyConfigurations": {
          "$ref": "#/$defs/KeyConfigurationsObject",
          "description": "Key configurations defined for the auto attendant."
        },
        "callTreatment": {
          "$ref": "#/$defs/CallTreatmentObject",
          "description": "Call treatment details."
        }
      }
    },
    "KeyConfigurationsObject": {
      "type": "object",
      "required": [
        "key",
        "action"
      ],
      "properties": {
        "key": {
          "type": "string",
          "enum": [
            "0",
            "1",
            "2",
            "3",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9",
            "*",
            "#"
          ],
          "description": "Key assigned to specific menu configuration."
        },
        "action": {
          "type": "string",
          "enum": [
            "PLAY_ANNOUNCEMENT",
            "TRANSFER_WITH_PROMPT",
            "TRANSFER_WITHOUT_PROMPT",
            "TRANSFER_TO_OPERATOR",
            "TRANSFER_TO_MAILBOX",
            "NAME_DIALING",
            "EXTENSION_DIALING",
            "REPEAT_MENU",
            "EXIT"
          ],
          "description": "Action assigned to specific menu key configuration.\n * `PLAY_ANNOUNCEMENT` - Plays a recorded message and then returns to the current Auto Attendant menu.\n * `TRANSFER_WITH_PROMPT` - Transfers the call to the specified number, without playing a transfer prompt.\n * `TRANSFER_WITHOUT_PROMPT` - Plays the message and then transfers the call to the specified number.\n * `TRANSFER_TO_OPERATOR` - Plays the message and then transfers the call to the specified operator number.\n * `TRANSFER_TO_MAILBOX` - Prompts the user for an extension, and transfers the user to voice mailbox of the dialed extension.\n * `NAME_DIALING` - Brings the user into the automated name directory.\n * `EXTENSION_DIALING` - Prompts the user for an extension, and transfers the user.\n * `REPEAT_MENU` - Replays the Auto Attendant greeting.\n * `EXIT` - Terminates the call.\n"
        },
        "description": {
          "type": "string",
          "description": "The description of each menu key."
        },
        "value": {
          "type": "string",
          "description": "Value based on actions."
        },
        "audioAnnouncementFile": {
          "$ref": "#/$defs/AudioAnnouncementFileObject",
          "description": "Pre-configured announcement audio files when PLAY_ANNOUNCEMENT is set."
        }
      }
    },
    "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."
    }
  }
}