GET http://[host-proxy]/api/device/spark/AutoAttendants/schema/?hierarchy=[hierarchy]&format=json&schema=1
{
"$schema": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties": {
"languageCode": {
"type": "string",
"title": "Language Code"
},
"aa_id": {
"type": "string",
"title": "aa_key"
},
"holidaySchedule": {
"type": "string",
"description": "Holiday defined for the auto attendant",
"title": "Holiday Schedule"
},
"id": {
"type": "string",
"title": "id"
},
"extensionDialing": {
"choices": [
{
"value": "ENTERPRISE",
"title": "ENTERPRISE"
},
{
"value": "GROUP",
"title": "GROUP"
}
],
"enum": [
"ENTERPRISE",
"GROUP"
],
"type": "string",
"description": "Extension dialing setting. If the values are not set default will be set as ENTERPRISE",
"title": "Extension Dialing"
},
"alternateNumbers": {
"items": {
"type": "object",
"properties": {
"tollFreeNumber": {
"type": "boolean",
"description": "tollFreeNumber",
"title": "TollFree Number"
},
"ringPattern": {
"choices": [
{
"value": "NORMAL",
"title": "NORMAL"
},
{
"value": "LONG_LONG",
"title": "LONG_LONG"
},
{
"value": "SHORT_SHORT_LONG",
"title": "SHORT_SHORT_LONG"
},
{
"value": "SHORT_LONG_SHORT",
"title": "SHORT_LONG_SHORT"
}
],
"required": true,
"type": "string",
"description": "ringPattern",
"title": "Ring Pattern"
},
"phoneNumber": {
"type": "string",
"description": "phoneNumber",
"title": "Phone Number"
}
}
},
"type": "array",
"title": "Alternate Numbers"
},
"phoneNumber": {
"type": "string",
"title": "Phone Number"
},
"firstName": {
"required": true,
"type": "string",
"title": "First Name"
},
"afterHoursMenu": {
"properties": {
"audioAnnouncementFile": {
"properties": {
"mediaFileType": {
"readonly": true,
"enum": [
"WAV",
"WMA",
"3GP"
],
"type": "string",
"title": "File Type"
},
"fileName": {
"readonly": true,
"type": "string",
"title": "File Name"
},
"id": {
"target": "/api/device/spark/Announcements/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken],
"format": "uri",
"title": "Name",
"convert_to_primary_key": true,
"choices": [],
"target_attr": "name",
"target_model_type": "device/spark/Announcements",
"type": "string"
},
"level": {
"choices": [
{
"value": "ORGANIZATION",
"title": "Enterprise"
},
{
"value": "LOCATION",
"title": "Location"
}
],
"enum": [
"ORGANIZATION",
"LOCATION"
],
"type": "string",
"description": "Audio announcement file type location",
"title": "Level"
}
},
"required": false,
"type": "object",
"description": "Announcement Audio File details",
"title": "Greeting File"
},
"extensionEnabled": {
"type": "boolean",
"description": "Enable extension dialling without requiring a menu item",
"title": "Extension Dialing"
},
"greeting": {
"choices": [
{
"value": "DEFAULT",
"title": "DEFAULT"
},
{
"value": "CUSTOM",
"title": "CUSTOM"
}
],
"enum": [
"DEFAULT",
"CUSTOM"
],
"type": "string",
"title": "Greeting"
},
"keyConfigurations": {
"items": {
"type": "object",
"properties": {
"action": {
"choices": [
{
"value": "PLAY_ANNOUNCEMENT",
"title": "Play announcement"
},
{
"value": "TRANSFER_WITH_PROMPT",
"title": "Transfer call with prompt"
},
{
"value": "TRANSFER_WITHOUT_PROMPT",
"title": "Transfer call without prompt"
},
{
"value": "TRANSFER_TO_OPERATOR",
"title": "Transfer call to operator"
},
{
"value": "TRANSFER_TO_MAILBOX",
"title": "Transfer to voicemail"
},
{
"value": "NAME_DIALING",
"title": "Dial by name"
},
{
"value": "EXTENSION_DIALING",
"title": "Dial by extension"
},
{
"value": "REPEAT_MENU",
"title": "Repeat menu"
},
{
"value": "EXIT",
"title": "Exit Menu"
}
],
"enum": [
"PLAY_ANNOUNCEMENT",
"TRANSFER_WITH_PROMPT",
"TRANSFER_WITHOUT_PROMPT",
"TRANSFER_TO_OPERATOR",
"TRANSFER_TO_MAILBOX",
"NAME_DIALING",
"EXTENSION_DIALING",
"REPEAT_MENU",
"EXIT",
"RETURN_TO_PREVIOUS_MENU"
],
"type": "string",
"description": "Action assigned to specific menu key configuration",
"title": "Action"
},
"key_description": {
"type": "string",
"description": "Provide a label for this menu option",
"title": "Description"
},
"audioAnnouncementFile": {
"properties": {
"mediaFileType": {
"readonly": true,
"enum": [
"WAV",
"WMA",
"3GP"
],
"type": "string",
"title": "File Type"
},
"fileName": {
"readonly": true,
"type": "string",
"title": "File Name"
},
"id": {
"target": "/api/device/spark/Announcements/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken],
"format": "uri",
"title": "Name",
"convert_to_primary_key": true,
"choices": [],
"target_attr": "name",
"target_model_type": "device/spark/Announcements",
"type": "string"
},
"level": {
"choices": [
{
"value": "ORGANIZATION",
"title": "Enterprise"
},
{
"value": "LOCATION",
"title": "Location"
}
],
"enum": [
"ORGANIZATION",
"LOCATION"
],
"type": "string",
"description": "Audio announcement file type location",
"title": "Level"
}
},
"required": false,
"type": "object",
"description": "Pre-configured announcement audio files when PLAY_ANNOUNCEMENT is set",
"title": "Announcement File"
},
"value": {
"type": "string",
"title": "Phone Number or Extension"
},
"key": {
"choices": [
{
"value": "0",
"title": "0"
},
{
"value": "1",
"title": "1"
},
{
"value": "2",
"title": "2"
},
{
"value": "3",
"title": "3"
},
{
"value": "4",
"title": "4"
},
{
"value": "5",
"title": "5"
},
{
"value": "6",
"title": "6"
},
{
"value": "7",
"title": "7"
},
{
"value": "8",
"title": "8"
},
{
"value": "9",
"title": "9"
},
{
"value": "#",
"title": "#"
}
],
"enum": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"#"
],
"type": "string",
"description": "Key assigned to specific menu configuration",
"title": "Key"
}
}
},
"required": true,
"type": "array",
"description": "Key configurations defined for the auto attendant",
"title": "Key Configurations"
}
},
"required": true,
"type": "object",
"description": "After hours menu defined for the auto attendant",
"title": "After Hours Menu"
},
"tollFreeNumber": {
"type": "boolean",
"description": "Flag to indicate if auto attendant number is toll-free number",
"title": "Toll Free Number"
},
"callForwarding": {
"properties": {
"rules": {
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "name",
"title": "Name"
},
"enabled": {
"type": "boolean",
"description": "enabled",
"title": "Enabled"
},
"id": {
"type": "string",
"description": "id",
"title": "id"
},
"callsFrom": {
"properties": {
"selection": {
"choices": [
{
"value": "ANY",
"title": "ANY"
},
{
"value": "CUSTOM",
"title": "CUSTOM"
}
],
"type": "string",
"description": "selection",
"title": "Selection"
},
"customNumbers": {
"properties": {
"privateNumberEnabled": {
"type": "boolean",
"description": "privateNumberEnabled",
"title": "Any Private Numbers "
},
"unavailableNumberEnabled": {
"type": "boolean",
"description": "unavailableNumberEnabled",
"title": "Any Unavailable Numbers"
},
"numbers": {
"items": {
"type": "string"
},
"type": "array",
"title": "Numbers"
}
},
"type": "object",
"description": "customNumbers",
"title": "Custom Numbers"
}
},
"type": "object",
"description": "callsFrom",
"title": "Calls From"
},
"businessSchedule": {
"type": "string",
"description": "businessSchedule",
"title": "Business Schedule"
},
"holidaySchedule": {
"type": "string",
"description": "holidaySchedule",
"title": "Holiday Schedule"
},
"forwardTo": {
"properties": {
"selection": {
"choices": [
{
"value": "FORWARD_TO_DEFAULT_NUMBER",
"title": "FORWARD_TO_DEFAULT_NUMBER"
},
{
"value": "FORWARD_TO_SPECIFIED_NUMBER",
"title": "FORWARD_TO_SPECIFIED_NUMBER"
},
{
"value": "DO_NOT_FORWARD",
"title": "DO_NOT_FORWARD"
}
],
"type": "string",
"description": "selection",
"title": "Selection"
},
"phoneNumber": {
"type": "string",
"description": "phoneNumber",
"title": "Phone Number"
}
},
"type": "object",
"description": "forwardTo",
"title": "Forward To"
},
"callsTo": {
"properties": {
"numbers": {
"items": {
"type": "object",
"properties": {
"phoneNumber": {
"type": "string",
"description": "Only return call queues with matching primary phone number or extension",
"title": "Phone Number"
},
"type": {
"choices": [
{
"value": "PRIMARY",
"title": "PRIMARY"
},
{
"value": "ALTERNATE",
"title": "ALTERNATE"
}
],
"type": "string",
"description": "Indicates that the given phoneNumber or extension associated with this rule's containing object is a primary or alternate number",
"title": "Type"
},
"extension": {
"type": "string",
"description": "Primary phone extension of the call queue.",
"title": "Extension"
}
}
},
"required": false,
"type": "array",
"description": "Array of numbers to be matched against the calling destination number",
"title": "Calls To Numbers"
}
},
"type": "object",
"description": "callsTo",
"title": "Calls To"
}
}
},
"required": false,
"type": "array",
"description": "rules",
"title": "Rules"
},
"always": {
"type": "object",
"properties": {
"ringReminderEnabled": {
"type": "boolean",
"description": "ringReminderEnabled",
"title": "Ring Reminder Enabled"
},
"destination": {
"type": "string",
"description": "destination",
"title": "Destination"
},
"enabled": {
"type": "boolean",
"description": "enabled",
"title": "Enabled"
},
"sendToVoicemailEnabled": {
"type": "boolean",
"description": "sendToVoicemailEnabled",
"title": "Send To Voicemail Enabled"
}
},
"title": "Always"
},
"selective": {
"type": "object",
"properties": {
"ringReminderEnabled": {
"type": "boolean",
"description": "ringReminderEnabled",
"title": "Ring Reminder Enabled"
},
"destination": {
"type": "string",
"description": "destination",
"title": "Destination"
},
"enabled": {
"type": "boolean",
"description": "enabled",
"title": "Enabled"
},
"sendToVoicemailEnabled": {
"type": "boolean",
"description": "sendToVoicemailEnabled",
"title": "Send To Voicemail Enabled"
}
},
"title": "Selective"
}
},
"required": false,
"type": "object",
"description": "Call Forwarding Settings",
"title": "Call Forwarding Settings"
},
"language": {
"required": true,
"type": "string",
"title": "Language"
},
"businessHoursMenu": {
"properties": {
"audioAnnouncementFile": {
"properties": {
"mediaFileType": {
"readonly": true,
"enum": [
"WAV",
"WMA",
"3GP"
],
"type": "string",
"title": "File Type"
},
"fileName": {
"readonly": true,
"type": "string",
"title": "File Name"
},
"id": {
"target": "/api/device/spark/Announcements/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken],
"format": "uri",
"title": "Name",
"convert_to_primary_key": true,
"choices": [],
"target_attr": "name",
"target_model_type": "device/spark/Announcements",
"type": "string"
},
"level": {
"choices": [
{
"value": "ORGANIZATION",
"title": "Enterprise"
},
{
"value": "LOCATION",
"title": "Location"
}
],
"enum": [
"ORGANIZATION",
"LOCATION"
],
"type": "string",
"description": "Audio announcement file type location",
"title": "Level"
}
},
"required": false,
"type": "object",
"description": "Announcement Audio File details",
"title": "Greeting File"
},
"extensionEnabled": {
"type": "boolean",
"description": "Enable extension dialling without requiring a menu item",
"title": "Extension Dialing"
},
"greeting": {
"choices": [
{
"value": "DEFAULT",
"title": "DEFAULT"
},
{
"value": "CUSTOM",
"title": "CUSTOM"
}
],
"enum": [
"DEFAULT",
"CUSTOM"
],
"type": "string",
"title": "Greeting"
},
"keyConfigurations": {
"items": {
"type": "object",
"properties": {
"action": {
"choices": [
{
"value": "PLAY_ANNOUNCEMENT",
"title": "Play announcement"
},
{
"value": "TRANSFER_WITH_PROMPT",
"title": "Transfer call with prompt"
},
{
"value": "TRANSFER_WITHOUT_PROMPT",
"title": "Transfer call without prompt"
},
{
"value": "TRANSFER_TO_OPERATOR",
"title": "Transfer call to operator"
},
{
"value": "TRANSFER_TO_MAILBOX",
"title": "Transfer to voicemail"
},
{
"value": "NAME_DIALING",
"title": "Dial by name"
},
{
"value": "EXTENSION_DIALING",
"title": "Dial by extension"
},
{
"value": "REPEAT_MENU",
"title": "Repeat menu"
},
{
"value": "EXIT",
"title": "Exit Menu"
}
],
"enum": [
"PLAY_ANNOUNCEMENT",
"TRANSFER_WITH_PROMPT",
"TRANSFER_WITHOUT_PROMPT",
"TRANSFER_TO_OPERATOR",
"TRANSFER_TO_MAILBOX",
"NAME_DIALING",
"EXTENSION_DIALING",
"REPEAT_MENU",
"EXIT",
"RETURN_TO_PREVIOUS_MENU"
],
"type": "string",
"description": "Action assigned to specific menu key configuration",
"title": "Action"
},
"key_description": {
"type": "string",
"description": "Provide a label for this menu option",
"title": "Description"
},
"audioAnnouncementFile": {
"properties": {
"mediaFileType": {
"readonly": true,
"enum": [
"WAV",
"WMA",
"3GP"
],
"type": "string",
"title": "File Type"
},
"fileName": {
"readonly": true,
"type": "string",
"title": "File Name"
},
"id": {
"target": "/api/device/spark/Announcements/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken],
"format": "uri",
"title": "Name",
"convert_to_primary_key": true,
"choices": [],
"target_attr": "name",
"target_model_type": "device/spark/Announcements",
"type": "string"
},
"level": {
"choices": [
{
"value": "ORGANIZATION",
"title": "Enterprise"
},
{
"value": "LOCATION",
"title": "Location"
}
],
"enum": [
"ORGANIZATION",
"LOCATION"
],
"type": "string",
"description": "Audio announcement file type location",
"title": "Level"
}
},
"required": false,
"type": "object",
"description": "Pre-configured announcement audio files when PLAY_ANNOUNCEMENT is set",
"title": "Announcement File"
},
"value": {
"type": "string",
"title": "Phone Number or Extension"
},
"key": {
"choices": [
{
"value": "0",
"title": "0"
},
{
"value": "1",
"title": "1"
},
{
"value": "2",
"title": "2"
},
{
"value": "3",
"title": "3"
},
{
"value": "4",
"title": "4"
},
{
"value": "5",
"title": "5"
},
{
"value": "6",
"title": "6"
},
{
"value": "7",
"title": "7"
},
{
"value": "8",
"title": "8"
},
{
"value": "9",
"title": "9"
},
{
"value": "#",
"title": "#"
}
],
"enum": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"#"
],
"type": "string",
"description": "Key assigned to specific menu configuration",
"title": "Key"
}
}
},
"required": true,
"type": "array",
"description": "Key configurations defined for the auto attendant",
"title": "Key Configurations"
}
},
"required": true,
"type": "object",
"description": "Business hours menu defined for the auto attendant",
"title": "Business Hours Menu"
},
"locationId": {
"target": "/api/device/spark/Location/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken],
"format": "uri",
"required": true,
"convert_to_primary_key": true,
"choices": [],
"target_attr": "name",
"target_model_type": "device/spark/Location",
"title": "locationId",
"type": "string"
},
"businessSchedule": {
"required": true,
"type": "string",
"description": "Business hours defined for the auto attendant",
"title": "Business Hours Schedule"
},
"nameDialing": {
"choices": [
{
"value": "ENTERPRISE",
"title": "ENTERPRISE"
},
{
"value": "GROUP",
"title": "GROUP"
}
],
"enum": [
"ENTERPRISE",
"GROUP"
],
"type": "string",
"description": "Name dialing setting. If the values are not set default will be set as ENTERPRISE",
"title": "Name Dialing"
},
"name": {
"required": true,
"type": "string",
"title": "Name"
},
"extension": {
"type": "string",
"title": "Extension"
},
"lastName": {
"required": true,
"type": "string",
"title": "Last Name"
},
"enabled": {
"type": "boolean",
"title": "Enabled"
},
"locationName": {
"type": "string",
"title": "locationName"
},
"timeZone": {
"type": "string",
"title": "Time Zone"
}
},
"schema_version": "1.0.0"
}