07-25-2020 07:52 AM
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>
07-26-2020 04:03 PM
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.
11-02-2020 07:21 AM
This is also how I have done it.
11-04-2020 02:20 AM
please share SOAP Request
06-22-2022 10:17 AM
Would it be possible to share your SOAP request here?
06-22-2022 03:18 PM
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>
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide