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>
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?
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>