<div dir="ltr">Wow, the documentation for the CUC API has gone to shit. There's literally a link on the <a href="http://developer.cisco.com">developer.cisco.com</a> site that sends you to a wiki site, which itself then sends you to <a href="http://developer.cisco.com">developer.cisco.com</a>. Nice.<div><br></div><div>Anyway, I tried to look into this quick for you, but I got stuck with the documentation on POSTing a new UM account for end users. It literally just says:</div><div><br></div><div><div>"To create an a new external service account, POST an XML document (<font color="#ff0000">formatted similar to the one above</font>) to the following URL:</div><div>POST https://<connection-server>/vmrest/users/<user-objectid>/externalserviceaccounts"</div></div><div>Source: <a href="http://docwiki.cisco.com/wiki/Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_User_Unified_Messaging_Account">http://docwiki.cisco.com/wiki/Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_User_Unified_Messaging_Account</a></div><div><br></div><div>The key part being "similar to." It's beyond my comprehension that anyone would think that this is sufficient documentation to make an API request work. Suffice it to say, it didn't work for me, and now I'm done troubleshooting it.</div><div><br></div><div>Since any good REST API should use CRUD, it would then make sense that you issue an HTTP DELETE to the user object + um account object URI to remove the old one, after you successfully run the POST above to Create the new association.</div><div><br></div><div>Good luck. If I have more time in the next few days, I'll try again.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 27, 2017 at 10:25 AM Nick Barnett <<a href="mailto:nicksbarnett@gmail.com">nicksbarnett@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I can handle most things in CUCM with SOAP, but I always get confused when trying to use VMREST in CUC. I cannot find a way to add and remove a UM account via automation. We're stuck using a CSV and it's really putting a cramp in our migration to Exchange Online.<div><br></div><div>The particular change I'm needing is here: Users->EditMenu->Unified messaging accounts</div><div>1) Need to add an additional one that connects to Exchange Online (this already exists in CUC)</div><div>2) Need to delete the old one that connects to on prem Exchange. (Not delete the whole UM connector service, but just the account association to a particular user)</div><div><br></div><div>Does anyone have any pointers on this? We have batches of people migrating every week, sometimes multiple times per week... so I can't just make some global change.</div><div><br></div><div>We're on CUC 10.5</div><div><br></div><div>Thanks!</div><div>Nick</div><div><br></div><div>P.S. I hate that MSFT and CSCO both have a product called "Unified Messaging" :)</div></div>
_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" rel="noreferrer" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
</blockquote></div>