Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
I am trying to modify a voicemail user's COS in Unity Connection with Python. I have been able to create users and edit other settings such as alternate extension but a simple modify is stumping me. Running my code results in a <response [204]> which...
I am guessing you are talking about the CTIControlledProfile? This will only appear as 'None' in the getUser statement unless it is populated. You should be able to compare a getUser of someone with the controlled profile and without. 'ctiControlle...
Do you actually have a device pool called "Default"? If not, change it to one you have phones in or remove the line and try to run it again. You should be able to use just 'name' as a bare minimum search criteria <searchCriteria>
<name>%</name>
<...
The vendor config isn't needed to add a phone using zeep. I just used it so we could set "headset hookswitch control" to ON by default. # import this module
import lxml.etree as ET
# vendor config is done differently than the rest of the phone buil...
Here is an example of what mine looks like, maybe it will help you. I would say you should triple check your variable names are correct. We store phone numbers in e164 format in CUCM '\+1xxxyyyzzzz'phone_name = sep_plus_mac
product = 'Cisco ...
Figured it out. Just needed to change POST to PUT.
s = requests.put(baseUrl + "users/" + end_user_objectid, auth=(apiUser, apiPassword), headers=headers_edit, json=cos, verify=False)