ChadMaggard | 2024-03-13 20:07:24 UTC | #1
When Creating a queue via Python SDK,
What is a writable division and how do you set it?
create an instance of the API class
apiinstance = PureCloudPlatformClientV2.RoutingApi(apiclient); body = PureCloudPlatformClientV2.CreateQueueRequest() # CreateQueueRequest | Queue
body.name = "ChadTestingQUeue2" body.callingpartyname = "AXXXX" body.callingpartynumber= "+1872274XXXX"
body.division.id = "4825df9a-1a81-4578-90e7-a922dc639ba0" body.division.name = "Nothing works"
tim.smith | 2024-03-13 20:37:14 UTC | #2
ChadMaggard, post:1, topic:25182
What is a writable division
In the docs: https://developer.genesys.cloud/devapps/sdk/docexplorer/purecloudpython/WritableDivision
In the source: https://github.com/MyPureCloud/platform-client-sdk-python/blob/master/build/PureCloudPlatformClientV2/models/writable_division.py
I don't actually know python, but I would assume something like this based on a quick google search about creating instances of classes in python:
writable_division = PureCloudPlatformClientV2.WritableDivision()
writable_division.id = "4825df9a-1a81-4578-90e7-a922dc639ba0"
body.division = writable_division
system | 2024-04-12 20:37:42 UTC | #3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 25182