Hello,
That appears to be a bug in the Python SDK.
Body with an empty dict or an empty array/list appears to be serialized as None/null.
I'll work on this shortly, creating a fix end of this week or early next week.
I'll update this post when the fix is done and when a new version of the Python SDK with it is made available.
Thanks for reporting this.
Regards,
------------------------------
Jerome Saint-Marc
Senior Development Support Engineer
------------------------------
Original Message:
Sent: 03-30-2026 19:17
From: Edgard Paternina
Subject: Clear Skills from Pyhton API
Hello Community,
I'm trying to clear all the skills for an agent from a Pyhton script. I hace tested from the API Explorer that if you send a empy list in the body (just [ ]) in the "PUT /api/v2/users/{UserId}/routingskills/bulk" endpoint the existing skills get removed from the user.
I have tried this in the Python SDK, setting th body to [], but then I get th error "Request body must not be null]"
I have also tried setting the body to [PureCloudPlatformClientV2.UserRoutingSkillPost()] without definig anything else but I get 404.
I really apreciatte any help to avoid using a pure HTTP Request.
#PlatformAPI
------------------------------
Edgard Paternina
Especialista It Ii
------------------------------