Add a standalone Cisco phone#
Overview#
This API POST call adds a standalone Cisco phone.
POST https://<hostname>/api/api/view/AddPhone
References:
Using POST AddPhone#
The API call involves the following tasks:
Identify the customer and customer hierarchy, and the site and site hierarchy.
Provide phone details:
Phone MAC address
Phone model
Phone description
Provide line details:
Directory numbers
Line labels
Display names
Step 1: Identify Customer+Customer Hierarchy and Site+Site Hierarchy#
Fetch the list of customers and populate a drop-down list. Allow the operator to select a customer from the list.
<Customer Name>
Refer to (GET) Customers for deployments with or without HCM-F.
Fetch available site hierarchies for the selected customer (
<Customer Name>
). Allow the operator to select the site where the phone will be added.Resolve
<Customer Hierarchy>
and<Site Hierarchy>
.<Customer Hierarchy>
is the entry in the earlier step that ends with the<Customer Name>
.For example, if
<Customer Name>
is Innovia, the<Customer Hierarchy>
will besys.hcs.CS-P.CS-NB.Innovia
.<Site Hierarchy>
is the entry in the earlier step that the operator selects.For example,
sys.hcs.CS-P.CS-NB.Innovia.INV-Reading
,sys.hcs.CS-P.CS-NB.Innovia.INV-New York
Step 2: Provide phone details#
Fill out a phone description
<PhoneDescription>
for thedescription
field.Select a phone model:
Populate
device_type
with phone models currently available to the customer.Refer to (GET) Phone Models by passing
<Customer Hierarchy>
.User chooses a phone model, and the choice is resolved into
<PhoneModel>
.
Fill out the MAC address of the new phone in the
name
field.Note
Note the input conditions for MAC address in the OpenAPI example for view/AddPhone
Step 2: Provide line details#
List all available directory numbers (DN) to populate
lines
.Refer to (GET) Directory Numbers.
User chooses a directory number (
directory_number
).Note
Multiple lines can be added to one phone. Two or more lines can be ordered 1,2,… (
<line_(n)>
).For each directory number selected, user fills out:
A line label (
label: <Label (n)>
)A display name (
display: <Display Name (n)>
)
Note
Note the input conditions in the OpenAPI example for view/AddPhone
Query parameters#
Parameter |
Value |
---|---|
|
Site |
Request Payload (Body)#
The box lists all parameters that could be included in the call request. These parameters are described in the table below the box:
{
"standalone": true,
"name": "<MACAddress>",
"device_type": "<PhoneModel>",
"description": "<PhoneDescription>",
"lines": [
{
"directory_number": "<line_1>",
"label": "<Label 1>",
"display": "<Display Name 1>"
}
],
"request_meta": {
"external_id": "<id>",
"external_reference": "<Reference>",
"callback_url": "<url_string>",
"callback_username": "<callback_username>",
"callback_password": "<callback_password>"
}
}
The table describes the parameters in the request:
Parameter |
Description |
Type |
Notes |
---|---|---|---|
|
The MAC address or phone name of the new phone. |
string |
The form field should check the following inputs:
|
|
The phone model. |
string |
A drop-down with available phone types. The operator selects a phone model. |
|
The phone description. |
string |
Max value: 30 characters |
|
Line details for each line added. |
array |
Line is populated by listing all directory
numbers (DNs) available, and then allowing
the user to select a DN. Multiple lines can
be added to a phone. Two or more lines can
be ordered 1,2,…
|
|
Contains callback details. |
object |
These details enable VOSS Automate to update the status when the initiated transaction is complete. |