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": {
"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"
},
"standalone": {
"default": "true",
"type": "boolean",
"description": "Either add this as a standalone phone or associate with an existing Subscriber (user).",
"title": "Standalone Phone"
},
"username": {
"type": "string",
"description": "Username of the subscriber.",
"title": "Username"
},
"device_type": {
"required": true,
"type": "string",
"description": "Device type of the phone.",
"title": "Device Type"
},
"template_name": {
"type": "string",
"description": "Phone template to use for feature configuration settings.",
"title": "Phone Template"
},
"name": {
"required": true,
"type": "string",
"description": "Name of the phone.",
"title": "Phone Name"
},
"description": {
"required": false,
"type": "string",
"description": "Description to be used for the phone.",
"title": "Phone Description"
},
"lines": {
"items": {
"type": "object",
"properties": {
"template_name": {
"type": "string",
"description": "Line template to use for configuration settings.",
"title": "Line Template"
},
"line_filter": {
"title": "Inventory Filter",
"default": "default",
"required": false,
"choices": [
{
"value": "default",
"title": "Default"
},
{
"value": "lines_unused_only_local",
"title": "Show Unused Numbers (Site Only)"
},
{
"value": "lines_unused_only",
"title": "Show Unused Numbers"
},
{
"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"
}
],
"type": "string"
},
"directory_number": {
"required": true,
"type": "string",
"description": "Directory Number of line to assign.",
"title": "Directory Number"
},
"label": {
"type": "string",
"description": "Label to use for this line.",
"title": "Label"
},
"display": {
"type": "string",
"description": "Display to use for this line.",
"title": "Display"
}
}
},
"type": "array",
"title": "Lines"
}
},
"schema_version": "1.2"
}