Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong documentation on get_partition #66

Open
RealKevin1960 opened this issue Jan 8, 2024 · 1 comment
Open

Wrong documentation on get_partition #66

RealKevin1960 opened this issue Jan 8, 2024 · 1 comment

Comments

@RealKevin1960
Copy link

Error in documentation:
In the documentation, it says to get the specifics of a name of a partition. I was looking for the uuid and couldn't get it to pull up, python error said bad parameter name (routePartitionName).

Here is the current example in the documentation
---------------Begin-----------------------------------------
Get Specific Partition
pt = ucm.get_partition(routePartitionName='pstn-pt')
print(pt.name)
---------------End-----------------------------------------
So the correction should be that to get the query to work, you need to specify "name" instead of "routePartitionName"

pt = ucm.get_partition(name='pstn-pt')
print(pt.name)
print(pt.uuid)

All the parameters available are found by getting the directory of fields in pt...
dir(pt)
['description', 'dialPlanWizardGenId', 'name', 'partitionUsage', 'timeScheduleIdName', 'timeZone', 'useOriginatingDeviceTimeZone', 'uuid']

Thought this might help someone in the future if you updated that documentation, it works fine calling that partition by name.

@RealKevin1960
Copy link
Author

Also this documentation doesn't have the ucm.update_phone(name='SEP0027902B1690', description='Test axl description') there are a lot of updates you can do directly to the phone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant