cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1438
Views
5
Helpful
5
Replies

CUCM AXL API adding associate devices

WHen I run the following code to update the associate devices field just to add an extra devices, it will delete all the devices and leave only one device. Can anyone help?  I need to be able to come up with something, that I can update this field, without loosing the other devices. Does anyone know?

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

    xmlns:ns="http://www.cisco.com/AXL/API/12.5">

    <soapenv:Header />

    <soapenv:Body>

        <ns:updateUser>

            <!--You have a CHOICE of the next 2 items at this level-->

            <userid>12345</userid>

            

            <associatedDevices>

                <!--Zero or more repetitions:-->

                <device>12345</device>                

                              

            </associatedDevices>   

5 Replies 5

dstaudt
Cisco Employee
Cisco Employee

Use <getUser> to first retrieve the existing associated devices, modify the list as needed (i.e. add the new device), then perform <updateUser> providing the new complete list.

This is also how I have done it. 

please share SOAP Request

Would it be possible to share your SOAP request here?

dstaudt
Cisco Employee
Cisco Employee

I believe the approach would be to retrieve the user (and current associated devices) via <getUser>, make the necessary changes, then provide the updated (full) list of <associatedDevices> in <updateUser>