vkondula | 2017-03-23 12:03:05 UTC | #1
Hi, I am trying to delete users using python SDK but I am getting 400 Bad Request.
PureCloudPlatformApiSdk.configuration.host = 'https://api.mypurecloud.ie'
PureCloudPlatformApiSdk.configuration.access_token = '***'
api = PureCloudPlatformApiSdk.UsersApi()
api.delete_user_id('ba10be03-cba9-4da3-b8cf-6e626720195d')
Using the same configuration I can manage other API calls. And also I was able to delete the very same user using:
requests.delete('https://api.mypurecloud.ie/api/v2/users/ba10be03-cba9-4da3-b8cf-6e626720195d', headers=h)
tim.smith | 2017-03-23 19:31:10 UTC | #2
It looks like this is something specific to the Python SDK. I've created API-2437 for this issue.
tim.smith | 2017-04-28 16:03:18 UTC | #3
This is fixed as of PureCloudPlatformClientV2 5.0.2.
system | 2017-08-28 19:33:16 UTC | #4
This post was migrated from the old Developer Forum.
ref: 1092