View to add either a standalone Phone or one that is associated with an existing Subscriber.
GET http://[host-proxy]/api/view/AddPhone/schema/?hierarchy=[hierarchy]&format=json&schema=1
{
"$schema": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties": {
"username": {
"type": "string",
"description": "Username of the subscriber.",
"title": "Username"
},
"name": {
"required": true,
"type": "string",
"description": "Name of the phone.",
"title": "Phone Name"
},
"standalone": {
"default": "true",
"type": "boolean",
"description": "Either add this as a standalone phone or associate with an existing Subscriber (user).",
"title": "Standalone Phone"
},
"template_name": {
"type": "string",
"description": "Phone template to use for feature configuration settings.",
"title": "Phone Template"
},
"lines": {
"items": {
"type": "object",
"properties": {
"line_filter": {
"default": "default",
"choices": [
{
"value": "default",
"title": "Default"
},
{
"value": "lines_e164_unused_local",
"title": "Show Unused Numbers with Associated E164's (Site Only)"
},
{
"value": "lines_e164_unused",
"title": "Show Unused Numbers with Associated E164's"
},
{
"value": "lines_used_only_local",
"title": "Show Used Numbers (Site Only)"
},
{
"value": "lines_used_only",
"title": "Show Used Numbers"
},
{
"value": "lines_userid_used",
"title": "Show Numbers belonging to this Subscriber"
}
],
"required": false,
"type": "string",
"title": "Inventory Filter"
},
"template_name": {
"type": "string",
"description": "Line template to use for configuration settings.",
"title": "Line Template"
},
"label": {
"type": "string",
"description": "Label to use for this line.",
"title": "Label"
},
"display": {
"type": "string",
"description": "Display to use for this line.",
"title": "Display"
},
"directory_number": {
"required": true,
"type": "string",
"description": "Directory Number of line to assign.",
"title": "Directory Number"
}
}
},
"type": "array",
"title": "Lines"
},
"device_type": {
"required": true,
"type": "string",
"description": "Device type of the phone.",
"title": "Device Type"
},
"cucm_bkey": {
"required": false,
"type": "string",
"description": "Business Key of the CUCM. If not specified the workflow will attempt to find the correct UCM server based on Customer or Site.",
"title": "Cisco UCM Server"
}
},
"schema_version": "1.0"
}