Update Phone Button Template
Problem
You want to find out the buttons that are set in a phone button template and update one of the buttons.
Solution
Cisco UC Manager Version: 9.0
Use the getPhoneButtonTemplate AXL API to get information about a particular phone button template and then use updatePhoneButtonTemplate to update a button in the phone button template.
Step 1: Get the phone button template.
The <name> or <uuid> is the only required field that indicates the phone button template you are trying to get.
The getPhoneButtonTemplate response returns a list of all of the buttons configured for that template.getPhoneButtonTemplate
Request Response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/9.0"> <soapenv:Header/> <soapenv:Body> <ns:getPhoneButtonTemplate sequence="?"> <name>Standard 7975 SCCP</name> </ns:getPhoneButtonTemplate> </soapenv:Body> </soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:getPhoneButtonTemplateResponse xmlns:ns="http://www.cisco.com/AXL/API/9.0"> <return> <phoneButtonTemplate uuid="{83D8E52A-2E01-495A-8449-2C703E64FD03}"> <name>Standard 7975 SCCP</name> <isUserModifiable>false</isUserModifiable> <buttons> <button uuid="{8A900BB7-A8A0-4A22-8F69-636230785428}"> <feature>Line</feature> <label>Line 1</label> <buttonNumber>1</buttonNumber> </button> <button uuid="{9A542D54-68E5-403E-AF51-CC1371A4DC5C}"> <feature>Line</feature> <label>Line 2</label> <buttonNumber>2</buttonNumber> </button> <button uuid="{2ECC49C2-1B22-404D-B9E9-FC1993058825}"> <feature>Speed Dial</feature> <label>Speed Dial 1</label> <buttonNumber>3</buttonNumber> </button> <button uuid="{F057E7AF-B938-42C2-9517-17474F76F0E8}"> <feature>Speed Dial</feature> <label>Speed Dial 2</label> <buttonNumber>4</buttonNumber> </button> <button uuid="{A5B36B89-2D10-4625-89D9-89C1A7D07C1A}"> <feature>Speed Dial</feature> <label>Speed Dial 3</label> <buttonNumber>5</buttonNumber> </button> <button uuid="{72D8BE43-6CEA-4297-A62A-D8542A012867}"> <feature>Speed Dial</feature> <label>Speed Dial 4</label> <buttonNumber>6</buttonNumber> </button> <button uuid="{F50652BA-D0C5-48DE-BBF6-5C6F2602C905}"> <feature>Speed Dial</feature> <label>Speed Dial 5</label> <buttonNumber>7</buttonNumber> </button> <button uuid="{2109EE85-8DA9-4C55-9D9C-9E5C4669B531}"> <feature>Speed Dial</feature> <label>Speed Dial 6</label> <buttonNumber>8</buttonNumber> </button> </buttons> </phoneButtonTemplate> </return> </ns:getPhoneButtonTemplateResponse> </soapenv:Body> </soapenv:Envelope>
Step 2: Update the phone button template.
The <name> or <uuid> is the only required field that indicates the phone button template you are trying to update.
The updatePhoneButtonTemplate response returns the uuid of the phone button template.updatePhoneButtonTemplate
Request Response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/9.0"> <soapenv:Header/> <soapenv:Body> <ns:updatePhoneButtonTemplate sequence="?"> <name>Standard 7975 SCCP</name> <buttons> <button> <feature>Line</feature> <label>Line 002</label> <buttonNumber>2</buttonNumber> </button> </buttons> </ns:updatePhoneButtonTemplate> </soapenv:Body> </soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:updatePhoneButtonTemplateResponse xmlns:ns="http://www.cisco.com/AXL/API/9.0"> <return>{83D8E52A-2E01-495A-8449-2C703E64FD03}</return> </ns:updatePhoneButtonTemplateResponse> </soapenv:Body> </soapenv:Envelope>